Module: Mesa Branch: master Commit: fe5ba5da7eaf5b243f83100890d483ada1ebb285 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fe5ba5da7eaf5b243f83100890d483ada1ebb285
Author: Brian Paul <[email protected]> Date: Thu Nov 10 15:54:34 2011 -0700 radeon: silence unused var warnings --- 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 c866aef..6e81493 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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
