summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texparam.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-12-08 22:53:23 +0100
committerMarek Olšák <[email protected]>2012-12-12 13:09:54 +0100
commitafa902a705b9de70902b6559a383a35f38152555 (patch)
treed3b5f0b1f3bfa1e7f8d84e5481347d1f9dcbed16 /src/mesa/main/texparam.c
parent0ac83a20010ae5fa1635866d1950f06aac15a46d (diff)
mesa: don't advertise ARB_texture_buffer_object in legacy contexts
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/texparam.c')
-rw-r--r--src/mesa/main/texparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index c2d161f9a9d..ca5a21f788b 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -976,7 +976,7 @@ legal_get_tex_level_parameter_target(struct gl_context *ctx, GLenum target)
* From the OpenGL 3.1 spec:
* "target may also be TEXTURE_BUFFER, indicating the texture buffer."
*/
- return _mesa_is_desktop_gl(ctx) && ctx->Version >= 31;
+ return ctx->API == API_OPENGL_CORE && ctx->Version >= 31;
default:
return GL_FALSE;
}