mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
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:
parent
87edfee086
commit
dea1b68f73
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue