From ba8a347f932f966422a5e156e54e8d05b664cf44 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 6 Nov 2017 15:20:35 +0000 Subject: mesa: split extensions overrides and glGetString(GL_EXTENSIONS) Currently we apply the extension overrides and construct the extensions string upon MakeCurrent. They are two distinct things, so let's slit the two while pushing the overrides management _before_ _mesa_compute_version(). This ensures that the version is updated to reflect the enabled/disabled extensions. Cc: Jordan Justen Signed-off-by: Emil Velikov Reviewed-by: Brian Paul --- src/mesa/drivers/x11/xm_api.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/drivers/x11') diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index a0695c3d87c..ec2a73cb369 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -957,6 +957,7 @@ XMesaContext XMesaCreateContext( XMesaVisual v, XMesaContext share_list ) _mesa_meta_init(mesaCtx); + _mesa_override_extensions(mesaCtx); _mesa_compute_version(mesaCtx); /* Exec table initialization requires the version to be computed */ -- cgit v1.2.3