diff options
author | Ian Romanick <[email protected]> | 2013-09-04 10:44:55 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-09-08 07:54:12 -0700 |
commit | e334ff43c4d6a42b903cc1fbcfd77e34473d336a (patch) | |
tree | 761732444b6fda7a723e42f0cede27fb75afd4b4 | |
parent | 7efe55cb2dbba61a73e442ecf355ac376b1d4b99 (diff) |
mesa: Don't allow glSamplerParameteriv(GL_TEXTURE_CUBE_MAP_SEAMLESS) in ES
There is no GL_TEXTURE_CUBE_MAP_SEAMLESS in any version of OpenGL ES or
in any extension that applies to OpenGL ES. The same error check
already occurs for glTexParameteri.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Cc: Maxence Le Dore <[email protected]>
-rw-r--r-- | src/mesa/main/samplerobj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/samplerobj.c b/src/mesa/main/samplerobj.c index 39cfcd086cf..c3b612c7618 100644 --- a/src/mesa/main/samplerobj.c +++ b/src/mesa/main/samplerobj.c @@ -569,7 +569,8 @@ static GLuint set_sampler_cube_map_seamless(struct gl_context *ctx, struct gl_sampler_object *samp, GLboolean param) { - if (!ctx->Extensions.AMD_seamless_cubemap_per_texture) + if (!_mesa_is_desktop_gl(ctx) + || !ctx->Extensions.AMD_seamless_cubemap_per_texture) return INVALID_PNAME; if (samp->CubeMapSeamless == param) |