mirror of https://github.com/mpv-player/mpv
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, ...).
This commit is contained in:
parent
46e3dc27af
commit
be8c9485b6
|
@ -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;
|
||||
|
|
|
@ -78,6 +78,7 @@ typedef struct MPGLContext {
|
|||
struct vo *vo;
|
||||
const struct mpgl_driver *driver;
|
||||
struct mpv_global *global;
|
||||
struct mp_log *log;
|
||||
|
||||
// For hwdec_vaegl.c.
|
||||
const char *native_display_type;
|
||||
|
|
Loading…
Reference in New Issue