diff options
author | wm4 <wm4@nowhere> | 2014-12-23 02:46:44 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-23 02:46:44 +0100 |
commit | a8ffa0d0ebca8e502c4dafb6ea5011e17c978b1a (patch) | |
tree | 81fcbf0b391ed889fe3a80bed5e4e9ba554defc3 /video/out/vo_opengl.c | |
parent | b7d0db8bfed7e9dac40f62977b016b3b8e5fdbc7 (diff) | |
download | mpv-a8ffa0d0ebca8e502c4dafb6ea5011e17c978b1a.tar.bz2 mpv-a8ffa0d0ebca8e502c4dafb6ea5011e17c978b1a.tar.xz |
vo_opengl: make use of newer OpenGL logging API
GL_ARB_debug_output provides a logging callback, which can be used to
diagnose problems etc. in case the driver supports it. It's enabled only
if the vo_opengl "debug" suboption is set.
Diffstat (limited to 'video/out/vo_opengl.c')
-rw-r--r-- | video/out/vo_opengl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_opengl.c b/video/out/vo_opengl.c index 67cd3ce9dd..d9067d9567 100644 --- a/video/out/vo_opengl.c +++ b/video/out/vo_opengl.c @@ -127,7 +127,7 @@ static void flip_page(struct vo *vo) p->glctx->swapGlBuffers(p->glctx); p->frames_rendered++; - if (p->frames_rendered > 5) + if (p->frames_rendered > 5 && !p->use_gl_debug) gl_video_set_debug(p->renderer, false); if (p->use_glFinish) |