]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
oops, two loop counting bugs, fixed
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Apr 2001 22:49:56 +0000 (22:49 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 23 Apr 2001 22:49:56 +0000 (22:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@192 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index 9a2229dd0d043b080733ae650115327342adcdbf..8236e6263a62192f5c95f3f691ccb0133721e046 100644 (file)
@@ -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)
                        {