From dea1b68f73998cfa2cdd634001bf9f4b4da503f0 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 6 Jun 2024 22:16:01 +0200 Subject: [PATCH] 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 Part-of: --- src/mesa/main/glformats.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 549f521111d..3adc35c1664 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -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);