swrast: s/GLubyte/GLchan/ in a cast

This commit is contained in:
Brian Paul 2011-09-20 21:06:19 -06:00
parent 72648c25e6
commit bdddf1cc26

View file

@ -976,7 +976,7 @@ static void FETCH(f_rg88)( const struct swrast_texture_image *texImage,
static void store_texel_rg88(struct swrast_texture_image *texImage,
GLint i, GLint j, GLint k, const void *texel)
{
const GLchan *rgba = (const GLubyte *) texel;
const GLchan *rgba = (const GLchan *) texel;
GLushort *dst = TEXEL_ADDR(GLushort, texImage, i, j, k, 1);
GLubyte r = CHAN_TO_UBYTE(rgba[RCOMP]);
GLubyte g = CHAN_TO_UBYTE(rgba[GCOMP]);