From ace2325634d1d52f73f26272e7020b5df92c2034 Mon Sep 17 00:00:00 2001 From: eihrul Date: Fri, 1 Apr 2011 21:05:36 +0000 Subject: [PATCH] fix the 0.5-fix git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11010 d7cf8633-e32d-0410-b094-e92efae38249 --- dpsoftrast.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dpsoftrast.c b/dpsoftrast.c index 4bed6ae1..29585470 100644 --- a/dpsoftrast.c +++ b/dpsoftrast.c @@ -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; -- 2.39.2