1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-06 07:00:30 +00:00

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.
This commit is contained in:
James Ross-Gowan 2016-06-15 20:32:47 +10:00
parent 43e964e2d6
commit 5700da4a8f

View File

@ -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,