From a8ffa0d0ebca8e502c4dafb6ea5011e17c978b1a Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 23 Dec 2014 02:46:44 +0100 Subject: 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. --- video/out/vo_opengl_cb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/vo_opengl_cb.c') 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); } -- cgit v1.2.3