From c4fe46f0b8b45407ea40500b869ae1beca71063c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 27 Apr 2006 02:50:31 +0000 Subject: fixes for CHAN_BITS!=8 --- src/mesa/swrast/s_texcombine.c | 41 +++++++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 18 deletions(-) (limited to 'src/mesa/swrast/s_texcombine.c') diff --git a/src/mesa/swrast/s_texcombine.c b/src/mesa/swrast/s_texcombine.c index 3c9fdc4d75..db77ad8bc3 100644 --- a/src/mesa/swrast/s_texcombine.c +++ b/src/mesa/swrast/s_texcombine.c @@ -36,6 +36,11 @@ #define PROD(A,B) ( (GLuint)(A) * ((GLuint)(B)+1) ) #define S_PROD(A,B) ( (GLint)(A) * ((GLint)(B)+1) ) +#if CHAN_BITS == 32 +typedef GLfloat ChanTemp; +#else +typedef GLuint ChanTemp; +#endif /** @@ -996,10 +1001,10 @@ texture_apply( const GLcontext *ctx, break; case GL_LUMINANCE: for (i=0;i