diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index a7a685538ba..bf627406f8c 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -1968,7 +1968,7 @@ _mesa_error_check_format_and_type(const struct gl_context *ctx, return GL_NO_ERROR; case GL_UNSIGNED_INT_2_10_10_10_REV: /* OK by GL_EXT_texture_type_2_10_10_10_REV */ - return _mesa_is_gles2(ctx) + return _mesa_has_EXT_texture_type_2_10_10_10_REV(ctx) ? GL_NO_ERROR : GL_INVALID_ENUM; case GL_UNSIGNED_INT_5_9_9_9_REV: return _mesa_has_texture_shared_exponent(ctx)