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

Author: Brian Paul <bri...@vmware.com>
Date:   Tue Jul 18 14:19:04 2017 -0600

mesa: check API profile for GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION

If we have a compat profile context, it means that GL_QUADS[_STRIP] are
supported so this query makes sense.  It's also legal for 3.2 core profile
because of a spec bug.

Reviewed-by: Ian Romanick <ian.d.roman...@intel.com>

---

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

diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 825ea340c7..68f520f14e 100644
--- a/src/mesa/main/get.c
+++ b/src/mesa/main/get.c
@@ -1302,7 +1302,7 @@ check_extra(struct gl_context *ctx, const char *func, 
const struct value_desc *d
          break;
       case EXTRA_EXT_PROVOKING_VERTEX_32:
          api_check = TRUE;
-         if (version <= 32)
+         if (ctx->API == API_OPENGL_COMPAT || version == 32)
             api_found = ctx->Extensions.EXT_provoking_vertex;
          break;
       case EXTRA_END:

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to