From 8b4be08d6c13e7f59513cffa94f7fb38768ab9e6 Mon Sep 17 00:00:00 2001 From: eihrul Date: Thu, 27 Jan 2011 21:48:02 +0000 Subject: [PATCH] fix mipedgetc typo git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10763 d7cf8633-e32d-0410-b094-e92efae38249 --- dpsoftrast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dpsoftrast.c b/dpsoftrast.c index 097ac476..684874c5 100644 --- a/dpsoftrast.c +++ b/dpsoftrast.c @@ -3642,7 +3642,7 @@ void DPSOFTRAST_Draw_ProcessTriangles(int firstvertex, int numtriangles, const i y = _mm_cvttss_si32(mipedgetc); if (y > 0) { - y = (int)(log(_mm_cvttss_si32(mipedgetc))/M_LN2); + y = (int)(log(y)/M_LN2); if (y > texture->mipmaps - 1) y = texture->mipmaps - 1; } -- 2.39.2