summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/ra_gl.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-08-08 17:06:45 +0200
committerNiklas Haas <git@haasn.xyz>2017-08-08 17:08:25 +0200
commit6087f63003351812996823877a4abbd51a1f9530 (patch)
treefb2a64845603724ed8061b9002c8951f727b5015 /video/out/opengl/ra_gl.h
parent7f9193b35325f16e0a3fc290fb0723de40b704c5 (diff)
downloadmpv-6087f63003351812996823877a4abbd51a1f9530.tar.bz2
mpv-6087f63003351812996823877a4abbd51a1f9530.tar.xz
vo_opengl: go back to using GL_TIME_ELAPSED
Less flexible than GL_TIMESTAMP but supported by more platforms. This will mean that nested queries have to be detected and silently omitted, but oh well. Not much use for them anyway. Fixes #4721.
Diffstat (limited to 'video/out/opengl/ra_gl.h')
-rw-r--r--video/out/opengl/ra_gl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/ra_gl.h b/video/out/opengl/ra_gl.h
index 08f0197433..3b6202cbfb 100644
--- a/video/out/opengl/ra_gl.h
+++ b/video/out/opengl/ra_gl.h
@@ -8,6 +8,7 @@
struct ra_gl {
GL *gl;
bool debug_enable;
+ bool timer_active; // hack for GL_TIME_ELAPSED limitations
};
// For ra_tex.priv