From bd91b39e6cdda1e581641010e51d663f13193759 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Mon, 23 Apr 2001 22:49:56 +0000 Subject: [PATCH] oops, two loop counting bugs, fixed git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@192 d7cf8633-e32d-0410-b094-e92efae38249 --- gl_textures.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.2