summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-07-18 14:19:04 -0600
committerBrian Paul <[email protected]>2017-07-19 20:09:09 -0600
commit98240f6399657d10832106282107c117a03d015a (patch)
treef276984d3e544ce48beda857052b89c96b7716e3 /src/mesa
parent9ac1432a5714f2c946d005dcdaa90dc5f738a6d8 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
index 825ea340c7b..68f520f14ef 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: