mesa/version: Update gl_extensions::Version during version override
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 1 Dec 2015 18:42:21 +0000 (10:42 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Thu, 3 Dec 2015 18:20:34 +0000 (10:20 -0800)
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: "11.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
src/mesa/main/version.c

index 314b26d..e92bb11 100644 (file)
@@ -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;
    }
 }