diff options
author | Mikko Juola <[email protected]> | 2013-07-30 20:39:00 +0300 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-07-31 07:27:01 -0600 |
commit | 8624a514c21e00ec51d4d9d2f4aee315378357ae (patch) | |
tree | 4b106d34b88efd340d31dc56f96f4e5c001da840 | |
parent | e404105e7dc192ddfb88b80df4238a97caedf32e (diff) |
mesa: fix multisampling proxy textures not being queryable
The code that checks if some texture target is valid for
glGetTexLevelParameter*() was not programmed to check for multisampling
proxy textures. This made it impossible(?) to use the proxy textures
for their intended purpose as glGetTexLevelParameter*() would just fail
on you.
Reviewed-by: Brian Paul <[email protected]>
Cc: [email protected]
-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 141cbe3ab33..32109951cb5 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -1048,6 +1048,8 @@ legal_get_tex_level_parameter_target(struct gl_context *ctx, GLenum target) return ctx->API == API_OPENGL_CORE && ctx->Version >= 31; case GL_TEXTURE_2D_MULTISAMPLE: case GL_TEXTURE_2D_MULTISAMPLE_ARRAY: + case GL_PROXY_TEXTURE_2D_MULTISAMPLE: + case GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY: return ctx->Extensions.ARB_texture_multisample; default: return GL_FALSE; |