mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 19:10:14 +01:00
mesa: Don't allow GL_EXTENSIONS query in core context
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
parent
c85a9a9996
commit
2bcf555490
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue