]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
gl_textures: Fix warning
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 30 Nov 2020 18:11:09 +0000 (18:11 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 30 Nov 2020 18:11:09 +0000 (18:11 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@13057 d7cf8633-e32d-0410-b094-e92efae38249

gl_textures.c

index fcb0bac7892c57e59e318de442358cb42d4a3827..b45c620b438f9c171c1b42c997348626504f55a2 100644 (file)
@@ -2284,7 +2284,7 @@ void R_UpdateTexture(rtexture_t *rt, const unsigned char *data, int x, int y, in
                if (x < 0 || y < 0 || z < 0 || glt->tilewidth < x + width || glt->tileheight < y + height || glt->tiledepth < z + depth)
                        Host_Error("R_UpdateTexture on buffered texture with out of bounds coordinates (%i %i %i to %i %i %i is not within 0 0 0 to %i %i %i)", x, y, z, x + width, y + height, z + depth, glt->tilewidth, glt->tileheight, glt->tiledepth);
 
-               for (j = 0; j < height; j++)
+               for (j = 0; j < (size_t)height; j++)
                        memcpy(glt->bufferpixels + ((y + j) * glt->tilewidth + x) * bpp, data + j * width * bpp, width * bpp);
 
                switch(combine)