diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index b48311cd463..b0065bac4ee 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -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;