mesa/main: validate abgr format
This one is fairly trivial; this format has only ever been added by the EXT_abgr extension. We always support it on GL, but never on GLES. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29835>
This commit is contained in:
committed by
Marge Bot
parent
87edfee086
commit
dea1b68f73
@@ -1768,6 +1768,9 @@ valid_texture_format_enum(const struct gl_context *ctx, GLenum format)
|
||||
case GL_ALPHA:
|
||||
return _mesa_is_desktop_gl_compat(ctx) || _mesa_is_gles(ctx);
|
||||
|
||||
case GL_ABGR_EXT:
|
||||
return _mesa_has_EXT_abgr(ctx);
|
||||
|
||||
case GL_YCBCR_MESA:
|
||||
return _mesa_has_MESA_ycbcr_texture(ctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user