From fe5ba5da7eaf5b243f83100890d483ada1ebb285 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 10 Nov 2011 15:54:34 -0700 Subject: [PATCH] radeon: silence unused var warnings --- src/mesa/drivers/dri/radeon/radeon_texture.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.30.2