From e14b486113de60c53a933c3ce5605863b0a84108 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 27 Jun 2013 18:20:23 -0700 Subject: [PATCH] mesa: Just set extension flags instead of calling _mesa_enable_extension Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke Reviewed-by: Brian Paul --- src/mesa/main/extensions.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index b8b69d07863..a39c3e15e5d 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -456,11 +456,10 @@ _mesa_enable_sw_extensions(struct gl_context *ctx) ctx->Extensions.NV_fragment_program_option = GL_TRUE; ctx->Extensions.EXT_gpu_program_parameters = GL_TRUE; ctx->Extensions.OES_standard_derivatives = GL_TRUE; - _mesa_enable_extension(ctx, "GL_3DFX_texture_compression_FXT1"); + ctx->Extensions.TDFX_texture_compression_FXT1 = GL_TRUE; if (ctx->Mesa_DXTn) { ctx->Extensions.ANGLE_texture_compression_dxt = GL_TRUE; - _mesa_enable_extension(ctx, "GL_EXT_texture_compression_s3tc"); - _mesa_enable_extension(ctx, "GL_S3_s3tc"); + ctx->Extensions.EXT_texture_compression_s3tc = GL_TRUE; } } -- 2.30.2