mesa: remove CHAN_TYPE cruft from debug.c

This commit is contained in:
Brian Paul
2011-09-17 16:22:47 -06:00
parent 59e858f462
commit ef275f907c
-4
View File
@@ -567,9 +567,6 @@ _mesa_dump_image(const char *filename, const void *image, GLuint w, GLuint h,
void
_mesa_print_texture(struct gl_context *ctx, struct gl_texture_image *img)
{
#if CHAN_TYPE != GL_UNSIGNED_BYTE
_mesa_problem(NULL, "PrintTexture not supported");
#else
const GLint slice = 0;
GLint srcRowStride;
GLuint i, j, c;
@@ -626,5 +623,4 @@ _mesa_print_texture(struct gl_context *ctx, struct gl_texture_image *img)
}
ctx->Driver.UnmapTextureImage(ctx, img, slice);
#endif
}