diff options
author | Ian Romanick <[email protected]> | 2014-06-16 17:17:43 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2014-07-15 10:46:33 -0700 |
commit | 750286600b871ee5506e2589719f58bda215a605 (patch) | |
tree | 825c548d31e1e61c66e30fba4d1584c5ddf2cd06 /src/mesa/main/texparam.c | |
parent | ee58c71a65bb5b769a03e4b25bd13c57a6b742d8 (diff) |
mesa: Don't allow GL_TEXTURE_BORDER queries outside compat profile
There are no texture borders in any version of OpenGL ES or desktop
OpenGL core profile.
Fixes piglit's gl-3.2-texture-border-deprecated.
v2: Rebase on different initial change.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Cc: "10.2 <[email protected]>
Diffstat (limited to 'src/mesa/main/texparam.c')
-rw-r--r-- | src/mesa/main/texparam.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 6767f320860..6bf116abafe 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -1108,6 +1108,8 @@ get_tex_level_parameter_image(struct gl_context *ctx, } break; case GL_TEXTURE_BORDER: + if (ctx->API != API_OPENGL_COMPAT) + goto invalid_pname; *params = img->Border; break; case GL_TEXTURE_RED_SIZE: |