mesa/main: fix enum errors
This enum shouldn't be allowed in GLES before version 3.1 Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35097>
This commit is contained in:
committed by
Marge Bot
parent
bba7f7d586
commit
57b04e8dfd
@@ -2551,7 +2551,7 @@ get_tex_parameterfv(struct gl_context *ctx,
|
||||
break;
|
||||
|
||||
case GL_IMAGE_FORMAT_COMPATIBILITY_TYPE:
|
||||
if (!ctx->Extensions.ARB_shader_image_load_store &&
|
||||
if (!_mesa_has_ARB_shader_image_load_store(ctx) &&
|
||||
!_mesa_is_gles31(ctx))
|
||||
goto invalid_pname;
|
||||
*params = (GLfloat) obj->Attrib.ImageFormatCompatibilityType;
|
||||
@@ -2844,7 +2844,7 @@ get_tex_parameteriv(struct gl_context *ctx,
|
||||
break;
|
||||
|
||||
case GL_IMAGE_FORMAT_COMPATIBILITY_TYPE:
|
||||
if (!ctx->Extensions.ARB_shader_image_load_store &&
|
||||
if (!_mesa_has_ARB_shader_image_load_store(ctx) &&
|
||||
!_mesa_is_gles31(ctx))
|
||||
goto invalid_pname;
|
||||
*params = obj->Attrib.ImageFormatCompatibilityType;
|
||||
|
||||
Reference in New Issue
Block a user