mirror of https://github.com/mpv-player/mpv
vo_opengl_cb: pass mpv_global to gl_video
I guess gl_video->global was originally meant to be optional, but now it crashes in some newer code with vo_opengl_cb, which tries to init it with this field set to NULL (because normally it's not needed). Probably fixes #2542.
This commit is contained in:
parent
ece794d905
commit
7f3cf75c5a
|
@ -176,7 +176,7 @@ int mpv_opengl_cb_init_gl(struct mpv_opengl_cb_context *ctx, const char *exts,
|
|||
|
||||
mpgl_load_functions2(ctx->gl, get_proc_address, get_proc_address_ctx,
|
||||
exts, ctx->log);
|
||||
ctx->renderer = gl_video_init(ctx->gl, ctx->log, NULL);
|
||||
ctx->renderer = gl_video_init(ctx->gl, ctx->log, ctx->global);
|
||||
if (!ctx->renderer)
|
||||
return MPV_ERROR_UNSUPPORTED;
|
||||
|
||||
|
|
Loading…
Reference in New Issue