From a879d14ecf818d767f5da9dd7fd3b0cd8816cf29 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 24 Jun 2010 14:10:24 -0600 Subject: mesa: initialize extension string when context is first bound ...instead of waiting until glGetString(GL_EXTENSIONS) is called. This fixes a problem where the MESA_EXTENSION_OVERRIDE env var is ignored if the app never calls glGetString(GL_EXTENSIONS). NOTE: this is a candidate patch for the 7.8 branch. --- src/mesa/main/getstring.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/mesa/main/getstring.c') diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c index 54db5794bf..7961ad7e7d 100644 --- a/src/mesa/main/getstring.c +++ b/src/mesa/main/getstring.c @@ -95,8 +95,6 @@ _mesa_GetString( GLenum name ) case GL_VERSION: return (const GLubyte *) ctx->VersionString; case GL_EXTENSIONS: - if (!ctx->Extensions.String) - ctx->Extensions.String = _mesa_make_extension_string(ctx); return (const GLubyte *) ctx->Extensions.String; #if FEATURE_ARB_shading_language_100 || FEATURE_ES2 case GL_SHADING_LANGUAGE_VERSION: -- cgit v1.2.3