summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-03-18 17:40:57 +0100
committerwm4 <wm4@nowhere>2017-03-18 17:40:57 +0100
commitbe8c9485b65f085e79f9e00689a721eb8fbdc7f8 (patch)
treea3d143267757c9d0220e7858d738cbb832fac818 /video/out/opengl/context.c
parent46e3dc27af20492dd24d228781b895f25abc3438 (diff)
downloadmpv-be8c9485b65f085e79f9e00689a721eb8fbdc7f8.tar.bz2
mpv-be8c9485b65f085e79f9e00689a721eb8fbdc7f8.tar.xz
vo_opengl: add log field to MGLContext
Should have done this 1000 years ago. Now GL backends can use mp_log macros directly on the MPGLContext, instead of doing stupid things like for example MP_WARN(ctx->vo, ...).
Diffstat (limited to 'video/out/opengl/context.c')
-rw-r--r--video/out/opengl/context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c
index f7fce4fae5..63fed40de2 100644
--- a/video/out/opengl/context.c
+++ b/video/out/opengl/context.c
@@ -160,6 +160,7 @@ static MPGLContext *init_backend(struct vo *vo, const struct mpgl_driver *driver
.vo = vo,
.global = vo->global,
.driver = driver,
+ .log = vo->log,
};
if (probing)
vo_flags |= VOFLAG_PROBING;