xlib: stop use _mesa_enable_extension(), just set the boolean flags
authorBrian Paul <brianp@vmware.com>
Mon, 28 Jan 2013 19:58:53 +0000 (12:58 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 29 Jan 2013 15:59:53 +0000 (08:59 -0700)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/x11/xm_api.c

index 739e8acb1cd3f97cd683fc4a2d609294ddfb03ff..f23755e76c6a01344768d5a0c0ffc9082c29e886 100644 (file)
@@ -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