mesa/main: use _mesa_is_gles1()-helper

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29528>
This commit is contained in:
Erik Faye-Lund
2024-06-03 11:45:21 +02:00
committed by Marge Bot
parent 53fb085ebd
commit e5bd74b775
+1 -1
View File
@@ -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,