mesa: check API profile for GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION
authorBrian Paul <brianp@vmware.com>
Tue, 18 Jul 2017 20:19:04 +0000 (14:19 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 20 Jul 2017 02:09:09 +0000 (20:09 -0600)
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.romanick@intel.com>
src/mesa/main/get.c

index 825ea340c7b2f4d174ebb8e91eb0cae969b34911..68f520f14efc352ba4f860ce2d3b0a4e282f85dc 100644 (file)
@@ -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: