summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/queryobj.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/queryobj.c')
-rw-r--r--src/mesa/main/queryobj.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index 2a143191c62..96b1c6bb30a 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa/main/queryobj.c
@@ -149,8 +149,7 @@ get_pipe_stats_binding_point(struct gl_context *ctx,
const int which = target - GL_VERTICES_SUBMITTED;
assert(which < MAX_PIPELINE_STATISTICS);
- if (!_mesa_is_desktop_gl(ctx) ||
- !ctx->Extensions.ARB_pipeline_statistics_query)
+ if (!_mesa_has_ARB_pipeline_statistics_query(ctx))
return NULL;
return &ctx->Query.pipeline_stats[which];