radeon: silence unused var warnings
authorBrian Paul <brianp@vmware.com>
Thu, 10 Nov 2011 22:54:34 +0000 (15:54 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 10 Nov 2011 23:00:46 +0000 (16:00 -0700)
src/mesa/drivers/dri/radeon/radeon_texture.c

index c866aef0f1b982614f385a5a578e657e99b4242b..6e814934eaa7d5640955dc92d3a86d6a9e8bbd0e 100644 (file)
@@ -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;