From: Ian Romanick Date: Wed, 4 Sep 2013 17:44:55 +0000 (-0700) Subject: mesa: Don't allow glSamplerParameteriv(GL_TEXTURE_CUBE_MAP_SEAMLESS) in ES X-Git-Tag: upstream/10.0.5~1476 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e334ff43c4d6a42b903cc1fbcfd77e34473d336a;p=platform%2Fupstream%2Fmesa.git 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 Reviewed-by: Chris Forbes Cc: Maxence Le Dore --- diff --git a/src/mesa/main/samplerobj.c b/src/mesa/main/samplerobj.c index 39cfcd0..c3b612c 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)