summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/glide/fxddtex.c
diff options
context:
space:
mode:
authorDaniel Borca <[email protected]>2005-01-17 08:05:47 +0000
committerDaniel Borca <[email protected]>2005-01-17 08:05:47 +0000
commitff39c65dee231b316acde81ba9be02bb16654999 (patch)
tree8208c644b68db02456a4be3d717367542e2e8055 /src/mesa/drivers/glide/fxddtex.c
parent714c36c1202cd49c58cf6462afd391fd059b96c2 (diff)
cleaned up warnings
Diffstat (limited to 'src/mesa/drivers/glide/fxddtex.c')
-rw-r--r--src/mesa/drivers/glide/fxddtex.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mesa/drivers/glide/fxddtex.c b/src/mesa/drivers/glide/fxddtex.c
index 4ccf8da7195..e7b7ec3198c 100644
--- a/src/mesa/drivers/glide/fxddtex.c
+++ b/src/mesa/drivers/glide/fxddtex.c
@@ -580,7 +580,7 @@ fxDDTexPalette(GLcontext * ctx, struct gl_texture_object *tObj)
}
/* This might be a proxy texture. */
if (!tObj->Palette.Table)
- return;
+ return;
if (!tObj->DriverData)
tObj->DriverData = fxAllocTexObjData(fxMesa);
ti = fxTMGetTexInfo(tObj);
@@ -994,6 +994,7 @@ fetch_rgba_dxt5(const struct gl_texture_image *texImage,
}
+#if 0 /* break glass in case of emergency */
static void
PrintTexture(int w, int h, int c, const GLubyte * data)
{
@@ -1009,6 +1010,7 @@ PrintTexture(int w, int h, int c, const GLubyte * data)
fprintf(stderr, "\n");
}
}
+#endif
const struct gl_texture_format *
@@ -1435,7 +1437,7 @@ fxDDTexImage2D(GLcontext * ctx, GLenum target, GLint level,
width, height, 1,
format, type, pixels, packing);
}
-
+
/* GL_SGIS_generate_mipmap */
if (level == texObj->BaseLevel && texObj->GenerateMipmap) {
GLint mipWidth, mipHeight;
@@ -1443,9 +1445,9 @@ fxDDTexImage2D(GLcontext * ctx, GLenum target, GLint level,
struct gl_texture_image *mipImage;
const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[ctx->Texture.CurrentUnit];
const GLint maxLevels = _mesa_max_texture_levels(ctx, texObj->Target);
-
+
assert(!texImage->IsCompressed);
-
+
while (level < texObj->MaxLevel && level < maxLevels - 1) {
mipWidth = width / 2;
if (!mipWidth) {