r300: fix condition logic
authorMaciej Cencora <m.cencora@gmail.com>
Mon, 24 Aug 2009 23:27:40 +0000 (01:27 +0200)
committerMaciej Cencora <m.cencora@gmail.com>
Mon, 24 Aug 2009 23:30:24 +0000 (01:30 +0200)
The s3tc extensions are properly enabled now, when force_s3tc_enable option is set in driconf.

src/mesa/drivers/dri/r300/r300_context.c

index d457ac1d6c729fdf0860261bc92fdf2a950a6e19..f701c434a453b89de21f62cefe16154fa5d578d3 100644 (file)
@@ -433,7 +433,7 @@ 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_enabled) {
                _mesa_enable_extension(ctx, "GL_EXT_texture_compression_s3tc");
                _mesa_enable_extension(ctx, "GL_S3_s3tc");
        } else if (r300->options.s3tc_force_disabled) {