diff options
author | Erik Faye-Lund <[email protected]> | 2020-06-17 23:50:06 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-18 17:07:14 +0000 |
commit | 747e808697c56dcabc76ae7bae350e4552af12e3 (patch) | |
tree | 0afd4e389165c30f89d0f74d8f07442fdabd03bf /src/mesa/main/glformats.c | |
parent | 4bc5110eea2fbed10badf0ea70b1787f24499288 (diff) |
mesa/main: fix inverted condition
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5532>
Diffstat (limited to 'src/mesa/main/glformats.c')
-rw-r--r-- | src/mesa/main/glformats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 5709b983067..dfff4a21f04 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; } |