From: Ian Romanick Date: Fri, 17 Aug 2012 21:32:21 +0000 (-0700) Subject: mesa: Don't allow GL_EXTENSIONS query in core context X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bcf55549026972c186b5e6c9f351ee77da30166;p=mesa.git mesa: Don't allow GL_EXTENSIONS query in core context Signed-off-by: Ian Romanick --- diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c index 748a9435746..9c9ade35955 100644 --- a/src/mesa/main/getstring.c +++ b/src/mesa/main/getstring.c @@ -126,6 +126,10 @@ _mesa_GetString( GLenum name ) case GL_VERSION: return (const GLubyte *) ctx->VersionString; case GL_EXTENSIONS: + if (ctx->API == API_OPENGL_CORE) { + _mesa_error(ctx, GL_INVALID_ENUM, "glGetString(GL_EXTENSIONS)"); + return (const GLubyte *) 0; + } return (const GLubyte *) ctx->Extensions.String; #if FEATURE_ARB_shading_language_100 || FEATURE_ES2 case GL_SHADING_LANGUAGE_VERSION: