mesa: enable texture compression extensions for software drivers when possible
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 28 Nov 2008 21:08:04 +0000 (14:08 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 28 Nov 2008 21:08:04 +0000 (14:08 -0700)
src/mesa/main/extensions.c

index de75325f1520bdb660e4bf2c6557316f9f79c8c4..9522f04ae516ce1f7f8fa160a9ba6ddb55f92d0a 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Mesa 3-D graphics library
- * Version:  7.1
+ * Version:  7.3
  *
  * Copyright (C) 1999-2008  Brian Paul   All Rights Reserved.
  *
@@ -297,6 +297,15 @@ _mesa_enable_sw_extensions(GLcontext *ctx)
 #if FEATURE_ARB_vertex_program || FEATURE_ARB_fragment_program
    ctx->Extensions.EXT_gpu_program_parameters = GL_TRUE;
 #endif
+#if FEATURE_texture_fxt1
+   _mesa_enable_extension(ctx, "GL_3DFX_texture_compression_FXT1");
+#endif
+#if FEATURE_texture_s3tc
+   if (ctx->Mesa_DXTn) {
+      _mesa_enable_extension(ctx, "GL_EXT_texture_compression_s3tc");
+      _mesa_enable_extension(ctx, "GL_S3_s3tc");
+   }
+#endif
 }