From: eihrul Date: Thu, 27 Jan 2011 21:48:02 +0000 (+0000) Subject: fix mipedgetc typo X-Git-Tag: xonotic-v0.5.0~438^2~78 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8b4be08d6c13e7f59513cffa94f7fb38768ab9e6;p=xonotic%2Fdarkplaces.git fix mipedgetc typo git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10763 d7cf8633-e32d-0410-b094-e92efae38249 --- 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; }