From 747e808697c56dcabc76ae7bae350e4552af12e3 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 17 Jun 2020 23:50:06 +0200 Subject: [PATCH] mesa/main: fix inverted condition MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I accidentally got one of the conditions wrong here. Sorry for the mixup. See ttps://gitlab.freedesktop.org/mesa/mesa/-/issues/3134 for details. Fixes: b112e62ba48 ("mesa/main: do not allow MESA_ycbcr_texture enums on gles") Reviewed-by: Marek Olšák Part-of: --- src/mesa/main/glformats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 5709b98..dfff4a2 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -2391,7 +2391,7 @@ _mesa_base_tex_format(const struct gl_context *ctx, GLint internalFormat) is_astc_3d_format(internalFormat))) return GL_RGBA; - if (!_mesa_has_MESA_ycbcr_texture(ctx)) { + if (_mesa_has_MESA_ycbcr_texture(ctx)) { if (internalFormat == GL_YCBCR_MESA) return GL_YCBCR_MESA; } -- 2.7.4