From 7035a74d93691bcc013b6bd0233981c58a4fcdfd Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 10 Jun 2024 12:10:39 +0200 Subject: [PATCH] mesa/main: use extension-helper Reviewed-by: Adam Jackson Part-of: --- src/mesa/main/glformats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 5386854803b..03578955b59 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -1845,8 +1845,8 @@ _mesa_error_check_format_and_type(const struct gl_context *ctx, break; /* OK */ } if (type == GL_UNSIGNED_INT_2_10_10_10_REV && format == GL_RGB && - _mesa_is_gles2(ctx)) { - break; /* OK by GL_EXT_texture_type_2_10_10_10_REV */ + _mesa_has_EXT_texture_type_2_10_10_10_REV(ctx)) { + break; /* OK */ } return GL_INVALID_OPERATION;