]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix the 0.5-fix
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 1 Apr 2011 21:05:36 +0000 (21:05 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 1 Apr 2011 21:21:58 +0000 (23:21 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11010 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ace2325634d1d52f73f26272e7020b5df92c2034

dpsoftrast.c

index 4bed6ae13c1d738b06ccd228a1dce71acabd8dbb..29585470c3c1ca3363cd331ed36e1c98823e234a 100644 (file)
@@ -2386,8 +2386,8 @@ void DPSOFTRAST_Draw_Span_Texture2DVarying(DPSOFTRAST_State_Thread *thread, cons
        tcimax[1] = texture->mipmap[mip][3]-1;
        tciwrapmask[0] = texture->mipmap[mip][2]-1;
        tciwrapmask[1] = texture->mipmap[mip][3]-1;
-       endtc[0] = (data[0] + slope[0]*startx) * zf[startx] * tcscale[0] - 0.5f;
-       endtc[1] = (data[1] + slope[1]*startx) * zf[startx] * tcscale[1] - 0.5f;
+       endtc[0] = (data[0] + slope[0]*startx) * zf[startx] * tcscale[0];
+       endtc[1] = (data[1] + slope[1]*startx) * zf[startx] * tcscale[1];
        if (filter)
        {
                endtc[0] -= 0.5f;