diff options
author | Brian Paul <[email protected]> | 2011-11-10 15:54:34 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-11-10 16:00:46 -0700 |
commit | fe5ba5da7eaf5b243f83100890d483ada1ebb285 (patch) | |
tree | ab884bd4618a3ee63dc50d993bb1fae02a74c3ce /src/mesa/drivers | |
parent | 2e15f0c86066b6f455c817b81e59bdca1afb0ee2 (diff) |
radeon: silence unused var warnings
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_texture.c | 6 |
1 files 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; |