From e5bd74b7753267dbe53d569bea661eb7c2b2aea7 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 3 Jun 2024 11:45:21 +0200 Subject: [PATCH] mesa/main: use _mesa_is_gles1()-helper Part-of: --- src/mesa/main/teximage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index b10c1a3fc02..bbfc343940f 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1987,7 +1987,7 @@ texture_error_check( struct gl_context *ctx, * "Specifying a value for internalformat that is not one of the * above (acceptable) values generates the error INVALID VALUE." */ - if (err == GL_INVALID_ENUM && _mesa_is_gles(ctx) && ctx->Version < 20) + if (err == GL_INVALID_ENUM && _mesa_is_gles1(ctx)) err = GL_INVALID_VALUE; _mesa_error(ctx, err,