diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2016-06-15 20:32:47 +1000 |
---|---|---|
committer | James Ross-Gowan <rossymiles@gmail.com> | 2016-06-15 20:32:47 +1000 |
commit | 5700da4a8fd551297eb74597bc8282efade54db4 (patch) | |
tree | fd40a91a0a56597b24f8769c7ce2820a90ae9960 /video/out/opengl/common.c | |
parent | 43e964e2d6af06dacf14e64243d6ee0b298906a1 (diff) | |
download | mpv-5700da4a8fd551297eb74597bc8282efade54db4.tar.bz2 mpv-5700da4a8fd551297eb74597bc8282efade54db4.tar.xz |
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.
Diffstat (limited to 'video/out/opengl/common.c')
-rw-r--r-- | video/out/opengl/common.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ -292,6 +292,22 @@ static const struct gl_functions gl_functions[] = { }, }, { + .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, .functions = (const struct gl_function[]) { |