]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix mipedgetc typo
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 27 Jan 2011 21:48:02 +0000 (21:48 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 27 Jan 2011 21:48:02 +0000 (21:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10763 d7cf8633-e32d-0410-b094-e92efae38249

dpsoftrast.c

index 097ac47617330cb01242d0f5118d0d6b18136788..684874c5a10c715fa577e40fbddcbcab03cd0c4c 100644 (file)
@@ -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;
                                }