mesa: check for extension instead of desktop GL

If we ever decide to allow this extension for GLES, this will make life
easier.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8028>
This commit is contained in:
Erik Faye-Lund
2020-12-10 12:10:37 +01:00
committed by Marge Bot
parent 47eb9b865d
commit 4ad7541cf0
+1 -1
View File
@@ -94,7 +94,7 @@ pixel_storei(GLenum pname, GLint param, bool no_error)
ctx->Pack.Alignment = param;
break;
case GL_PACK_INVERT_MESA:
if (!no_error && !_mesa_is_desktop_gl(ctx))
if (!no_error && !_mesa_has_MESA_pack_invert(ctx))
goto invalid_enum_error;
ctx->Pack.Invert = param;
break;