From 167e958a87d53614e6bbb78b09bafcea17335b4b Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 6 Nov 2017 15:33:52 +0000 Subject: mesa: call _mesa_make_extension_string only as needed As of previous commit we removed the extension overrides from this function. Thus we no longer need to call it during MakeCurrent, so we can construct the extensions string when needed - _mesa_GetString. This commit effectively reverts a879d14ecf8 ("mesa: initialize extension string when context is first bound") Signed-off-by: Emil Velikov Reviewed-by: Brian Paul --- src/mesa/main/getstring.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/main/getstring.c') diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c index 4c805ca4d51..931f6a476cb 100644 --- a/src/mesa/main/getstring.c +++ b/src/mesa/main/getstring.c @@ -143,6 +143,8 @@ _mesa_GetString( GLenum name ) _mesa_error(ctx, GL_INVALID_ENUM, "glGetString(GL_EXTENSIONS)"); return (const GLubyte *) 0; } + if (!ctx->Extensions.String) + ctx->Extensions.String = _mesa_make_extension_string(ctx); return (const GLubyte *) ctx->Extensions.String; case GL_SHADING_LANGUAGE_VERSION: if (ctx->API == API_OPENGLES) -- cgit v1.2.3