mesa: Fallthrough GL_SRB_DECODE_ARB pname
GL_SRGB_DECODE_ARB should fall through into the (!query2) test. Related-to: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21682 Signed-off-by: Mykhailo Skorokhodov <mykhailo.skorokhodov@globallogic.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23363>
This commit is contained in:

committed by
Marge Bot

parent
f85c286f51
commit
457f9ee191
@@ -155,6 +155,15 @@ _legal_parameters(struct gl_context *ctx, GLenum target, GLenum internalformat,
|
||||
}
|
||||
break;
|
||||
|
||||
case GL_CLEAR_TEXTURE:
|
||||
if (!_mesa_has_ARB_clear_texture(ctx)) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||
"glGetInternalformativ(pname=%s)",
|
||||
_mesa_enum_to_string(pname));
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
||||
case GL_SRGB_DECODE_ARB:
|
||||
/* The ARB_internalformat_query2 spec says:
|
||||
*
|
||||
@@ -168,15 +177,6 @@ _legal_parameters(struct gl_context *ctx, GLenum target, GLenum internalformat,
|
||||
_mesa_enum_to_string(pname));
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
||||
case GL_CLEAR_TEXTURE:
|
||||
if (!_mesa_has_ARB_clear_texture(ctx)) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||
"glGetInternalformativ(pname=%s)",
|
||||
_mesa_enum_to_string(pname));
|
||||
return false;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
case GL_INTERNALFORMAT_SUPPORTED:
|
||||
case GL_INTERNALFORMAT_PREFERRED:
|
||||
|
Reference in New Issue
Block a user