summaryrefslogtreecommitdiffstats
path: root/video/out/vo_opengl_cb.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-23 02:46:44 +0100
committerwm4 <wm4@nowhere>2014-12-23 02:46:44 +0100
commita8ffa0d0ebca8e502c4dafb6ea5011e17c978b1a (patch)
tree81fcbf0b391ed889fe3a80bed5e4e9ba554defc3 /video/out/vo_opengl_cb.c
parentb7d0db8bfed7e9dac40f62977b016b3b8e5fdbc7 (diff)
downloadmpv-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_cb.c')
-rw-r--r--video/out/vo_opengl_cb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo_opengl_cb.c b/video/out/vo_opengl_cb.c
index c292668651..f431880ecb 100644
--- a/video/out/vo_opengl_cb.c
+++ b/video/out/vo_opengl_cb.c
@@ -214,6 +214,7 @@ int mpv_opengl_cb_render(struct mpv_opengl_cb_context *ctx, int fbo, int vp[4])
gl_video_config(ctx->renderer, &ctx->img_params);
struct vo_priv *p = vo->priv;
gl_video_set_options(ctx->renderer, p->renderer_opts);
+ ctx->gl->debug_context = p->use_gl_debug;
gl_video_set_debug(ctx->renderer, p->use_gl_debug);
}