diff options
author | Emil Velikov <[email protected]> | 2017-11-06 15:20:35 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-11-16 14:07:14 +0000 |
commit | ba8a347f932f966422a5e156e54e8d05b664cf44 (patch) | |
tree | 0e375bbf1f15171e3c1715d867d575579d6cc1e2 /src/mesa/drivers/osmesa | |
parent | afd6a964a423c015548f0474ee4e5e1a24967fe6 (diff) |
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 <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/drivers/osmesa')
-rw-r--r-- | src/mesa/drivers/osmesa/osmesa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/osmesa/osmesa.c b/src/mesa/drivers/osmesa/osmesa.c index 72bff3da2c6..1df3da4cd24 100644 --- a/src/mesa/drivers/osmesa/osmesa.c +++ b/src/mesa/drivers/osmesa/osmesa.c @@ -913,6 +913,7 @@ OSMesaCreateContextAttribs(const int *attribList, OSMesaContext sharelist) swrast->choose_line = osmesa_choose_line; swrast->choose_triangle = osmesa_choose_triangle; + _mesa_override_extensions(ctx); _mesa_compute_version(ctx); if (ctx->Version < version_major * 10 + version_minor) { |