summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2012-08-17 14:32:21 -0700
committerIan Romanick <[email protected]>2012-08-29 15:09:36 -0700
commit2bcf55549026972c186b5e6c9f351ee77da30166 (patch)
treece2ceb459b598d2c5db3adaa3e4857e6d96a3343 /src/mesa
parentc85a9a99965745bac23a72a6794cd9d9493e27be (diff)
mesa: Don't allow GL_EXTENSIONS query in core context
Signed-off-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/getstring.c4
1 files changed, 4 insertions, 0 deletions
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: