From: lordhavoc Date: Mon, 23 Apr 2001 22:49:56 +0000 (+0000) Subject: oops, two loop counting bugs, fixed X-Git-Tag: RELEASE_0_2_0_RC1~836 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bd91b39e6cdda1e581641010e51d663f13193759;p=xonotic%2Fdarkplaces.git oops, two loop counting bugs, fixed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@192 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_textures.c b/gl_textures.c index 9a2229dd..8236e626 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -304,7 +304,7 @@ void R_ResampleTexture (void *indata, int inwidth, int inheight, void *outdata, out += 16; row1 += 16; row2 += 16; - j--; + j -= 4; } if (j & 2) { @@ -371,6 +371,7 @@ void R_ResampleTexture (void *indata, int inwidth, int inheight, void *outdata, out[2] = inrow[frac >> 16];frac += fracstep; out[3] = inrow[frac >> 16];frac += fracstep; out += 4; + j--; } if (j & 2) {