mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-07 03:20:28 +01:00
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 <ian.d.romanick@intel.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Cc: Maxence Le Dore <maxence.ledore@gmail.com>
This commit is contained in:
parent
7efe55cb2d
commit
e334ff43c4
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue