summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/getstring.c
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2012-07-19 11:27:16 -0700
committerJordan Justen <[email protected]>2012-07-30 16:18:57 -0700
commit09714c09a40501d82823e42f7461d7b8d7bf11c0 (patch)
tree144610e22885309e431706173799f044d86255c7 /src/mesa/main/getstring.c
parent3d284dcba6f692ce268c9a2178a30e7a308b2cfc (diff)
mesa: add support for using API_OPENGL_CORE
Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/getstring.c')
-rw-r--r--src/mesa/main/getstring.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/getstring.c b/src/mesa/main/getstring.c
index 2f445aaf97d..c6f400af597 100644
--- a/src/mesa/main/getstring.c
+++ b/src/mesa/main/getstring.c
@@ -41,6 +41,7 @@ shading_language_version(struct gl_context *ctx)
{
switch (ctx->API) {
case API_OPENGL:
+ case API_OPENGL_CORE:
if (!ctx->Extensions.ARB_shader_objects) {
_mesa_error(ctx, GL_INVALID_ENUM, "glGetString");
return (const GLubyte *) 0;