From 5700da4a8fd551297eb74597bc8282efade54db4 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Wed, 15 Jun 2016 20:32:47 +1000 Subject: vo_opengl: use EXT_disjoint_timer_query for timers This is the ES equivalent to ARB_timer_query. It enables the performance timers on ANGLE. All the added functions should be identical in semantics to their desktop GL equivalents. --- video/out/opengl/common.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'video/out/opengl/common.c') diff --git a/video/out/opengl/common.c b/video/out/opengl/common.c index 702f473ba2..8cc974ba93 100644 --- a/video/out/opengl/common.c +++ b/video/out/opengl/common.c @@ -291,6 +291,22 @@ static const struct gl_functions gl_functions[] = { {0} }, }, + { + .extension = "GL_EXT_disjoint_timer_query", + .functions = (const struct gl_function[]) { + DEF_FN_NAME(GenQueries, "glGenQueriesEXT"), + DEF_FN_NAME(DeleteQueries, "glDeleteQueriesEXT"), + DEF_FN_NAME(BeginQuery, "glBeginQueryEXT"), + DEF_FN_NAME(EndQuery, "glEndQueryEXT"), + DEF_FN_NAME(QueryCounter, "glQueryCounterEXT"), + DEF_FN_NAME(IsQuery, "glIsQueryEXT"), + DEF_FN_NAME(GetQueryObjectiv, "glGetQueryObjectivEXT"), + DEF_FN_NAME(GetQueryObjecti64v, "glGetQueryObjecti64vEXT"), + DEF_FN_NAME(GetQueryObjectuiv, "glGetQueryObjectuivEXT"), + DEF_FN_NAME(GetQueryObjectui64v, "glGetQueryObjectui64vEXT"), + {0} + }, + }, { .ver_core = 430, .ver_es_core = 300, -- cgit v1.2.3