From: Brian Paul Date: Thu, 2 Nov 2006 22:55:59 +0000 (+0000) Subject: s/GLchan/GLubyte/ in debug code X-Git-Tag: 062012170305~20207 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71f71c2c8ab0b8af95cddc99df5dd01e4ca6af68;p=profile%2Fivi%2Fmesa.git s/GLchan/GLubyte/ in debug code --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 662f697..543d6ef 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -73,11 +73,11 @@ _mesa_free_texmemory(void *m) #if 0 static void PrintTexture(GLcontext *ctx, const struct gl_texture_image *img) { -#if CHAN_TYPE == GL_FLOAT - _mesa_problem(NULL, "PrintTexture doesn't support float channels"); +#if CHAN_TYPE != GL_UNSIGNED_BYTE + _mesa_problem(NULL, "PrintTexture not supported"); #else GLuint i, j, c; - const GLchan *data = (const GLchan *) img->Data; + const GLubyte *data = (const GLubyte *) img->Data; if (!data) { _mesa_printf("No texture data\n");