From: Brian Paul Date: Thu, 10 Nov 2011 22:54:34 +0000 (-0700) Subject: radeon: silence unused var warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe5ba5da7eaf5b243f83100890d483ada1ebb285;p=mesa.git radeon: silence unused var warnings --- diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c index c866aef0f1b..6e814934eaa 100644 --- a/src/mesa/drivers/dri/radeon/radeon_texture.c +++ b/src/mesa/drivers/dri/radeon/radeon_texture.c @@ -337,13 +337,13 @@ static gl_format radeonChoose8888TexFormat(radeonContextPtr rmesa, GLenum srcFormat, GLenum srcType, GLboolean fbo) { - const GLuint ui = 1; - const GLubyte littleEndian = *((const GLubyte *)&ui); - /* r100 can only do this */ #if defined(RADEON_R100) return _radeon_texformat_argb8888; #elif defined(RADEON_R200) + const GLuint ui = 1; + const GLubyte littleEndian = *((const GLubyte *)&ui); + if (fbo) return _radeon_texformat_argb8888;