r300: allow disabling s3tc support if libtxc_dxtn is available
authorMaciej Cencora <m.cencora@gmail.com>
Wed, 18 Nov 2009 21:19:25 +0000 (22:19 +0100)
committerMaciej Cencora <m.cencora@gmail.com>
Wed, 18 Nov 2009 21:19:25 +0000 (22:19 +0100)
src/mesa/drivers/dri/r300/r300_context.c

index 3ed49a85c5bd546328030055d69f3743a418ed2e..5f07b95634956acdb870b097dadcde007ae368d2 100644 (file)
@@ -439,11 +439,11 @@ static void r300InitGLExtensions(GLcontext *ctx)
        if (r300->options.stencil_two_side_disabled)
                _mesa_disable_extension(ctx, "GL_EXT_stencil_two_side");
 
-       if (ctx->Mesa_DXTn || r300->options.s3tc_force_enabled) {
+       if (r300->options.s3tc_force_disabled) {
+               _mesa_disable_extension(ctx, "GL_EXT_texture_compression_s3tc");
+       } else if (ctx->Mesa_DXTn || r300->options.s3tc_force_enabled) {
                _mesa_enable_extension(ctx, "GL_EXT_texture_compression_s3tc");
                _mesa_enable_extension(ctx, "GL_S3_s3tc");
-       } else if (r300->options.s3tc_force_disabled) {
-               _mesa_disable_extension(ctx, "GL_EXT_texture_compression_s3tc");
        }
 
        if (!r300->radeon.radeonScreen->drmSupportsOcclusionQueries) {