[Mesa-dev] [PATCH] mesa/version: Update gl_extensions::Version during version override

Nanley Chery nanleychery at gmail.com
Tue Dec 1 10:44:43 PST 2015


From: Nanley Chery <nanley.g.chery at intel.com>

Commit a16ffb743ced9fde80b2485dfc2d86ae74e86f25, which introduced
gl_extensions::Version, updates the field when the context version
is computed and when entering/exiting meta. Update this field when
the version is overridden as well.

Cc: Marta Lofstedt <marta.lofstedt at linux.intel.com>
Cc: Emil Velikov <emil.l.velikov at gmail.com>
Signed-off-by: Nanley Chery <nanley.g.chery at intel.com>
---
 src/mesa/main/version.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c
index 314b26d..e92bb11 100644
--- a/src/mesa/main/version.c
+++ b/src/mesa/main/version.c
@@ -199,6 +199,7 @@ _mesa_override_gl_version(struct gl_context *ctx)
        *     <version number><space><vendor-specific information>"
        */
       create_version_string(ctx, _mesa_is_gles(ctx) ? "OpenGL ES " : "");
+      ctx->Extensions.Version = ctx->Version;
    }
 }
 
-- 
2.6.2



More information about the mesa-dev mailing list