mesa/main: use _mesa_is_gles1()-helper
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29528>
This commit is contained in:
committed by
Marge Bot
parent
53fb085ebd
commit
e5bd74b775
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user