aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstore.c
diff options
context:
space:
mode:
authorKarl Schultz <[email protected]>2002-10-28 23:01:24 +0000
committerKarl Schultz <[email protected]>2002-10-28 23:01:24 +0000
commitd3975341e743b3436a69dedd864ccedc56b0db03 (patch)
tree2c8c158c9555e93cc7ff892c09c7eb7cf76e653a /src/mesa/main/texstore.c
parent5f1651ddc5149633dc9027f81060b8de660c9432 (diff)
Add casts to quiet compiler warnings.
Diffstat (limited to 'src/mesa/main/texstore.c')
-rw-r--r--src/mesa/main/texstore.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 046e5289c52..d144d8095f2 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -1,4 +1,4 @@
-/* $Id: texstore.c,v 1.45 2002/10/24 23:57:21 brianp Exp $ */
+/* $Id: texstore.c,v 1.46 2002/10/28 23:01:24 kschultz Exp $ */
/*
* Mesa 3-D graphics library
@@ -1909,7 +1909,8 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target,
/* Find convertFormat - the format that do_row() will process */
if (srcImage->IsCompressed) {
/* setup for compressed textures */
- GLint row, components, size;
+ GLuint row;
+ GLint components, size;
GLchan *dst;
assert(texObj->Target == GL_TEXTURE_2D);
@@ -1946,7 +1947,7 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target,
/* decompress base image here */
dst = (GLchan *) srcData;
for (row = 0; row < srcImage->Height; row++) {
- GLint col;
+ GLuint col;
for (col = 0; col < srcImage->Width; col++) {
(*srcImage->FetchTexel)(srcImage, col, row, 0, (GLvoid *) dst);
dst += components;