Mesa (master): mesa: check for extension instead of desktop GL

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Dec 11 11:51:34 UTC 2020


Module: Mesa
Branch: master
Commit: 4ad7541cf0780a8611fcb3a88b23f0179d24f269
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4ad7541cf0780a8611fcb3a88b23f0179d24f269

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Thu Dec 10 12:10:37 2020 +0100

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 at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8028>

---

 src/mesa/main/pixelstore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/pixelstore.c b/src/mesa/main/pixelstore.c
index e67ff4e9458..d1d1f038909 100644
--- a/src/mesa/main/pixelstore.c
+++ b/src/mesa/main/pixelstore.c
@@ -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;



More information about the mesa-commit mailing list