The _mesa_has_ARB_pipeline_statistics_query(ctx)-helper will already
check the GLES-version according to the extension-table, so if this
extension would ever be back-ported to ES, we only need to update the
table to support this.
This shouln't have any functional effect.
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
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];