summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-01-28 12:58:53 -0700
committerBrian Paul <[email protected]>2013-01-29 08:59:53 -0700
commit4e41ae5fc11c0a6d4804386224d85989931d7c0e (patch)
tree33de85987826e721be12f8f17063a503566e6534 /src/mesa/drivers
parentbecec657d6e4597fd43507e5cf5a5aef5c93ce12 (diff)
xlib: stop use _mesa_enable_extension(), just set the boolean flags
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/x11/xm_api.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c
index 739e8acb1cd..f23755e76c6 100644
--- a/src/mesa/drivers/x11/xm_api.c
+++ b/src/mesa/drivers/x11/xm_api.c
@@ -928,13 +928,12 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list )
_mesa_enable_2_0_extensions(mesaCtx);
_mesa_enable_2_1_extensions(mesaCtx);
if (mesaCtx->Mesa_DXTn) {
- _mesa_enable_extension(mesaCtx, "GL_EXT_texture_compression_s3tc");
- _mesa_enable_extension(mesaCtx, "GL_ANGLE_texture_compression_dxt3");
- _mesa_enable_extension(mesaCtx, "GL_ANGLE_texture_compression_dxt5");
+ mesaCtx->Extensions.EXT_texture_compression_s3tc = GL_TRUE;
+ mesaCtx->Extensions.ANGLE_texture_compression_dxt = GL_TRUE;
}
- _mesa_enable_extension(mesaCtx, "GL_3DFX_texture_compression_FXT1");
+ mesaCtx->Extensions.TDFX_texture_compression_FXT1 = GL_TRUE;
#if ENABLE_EXT_timer_query
- _mesa_enable_extension(mesaCtx, "GL_EXT_timer_query");
+ mesaCtx->Extensions.EXT_timer_query = GL_TRUE;
#endif