mirror of https://github.com/mpv-player/mpv
vo/opengl/context_win: fix crash on init failure
Don't try to access window context if it failed to create.
This commit is contained in:
parent
9158653982
commit
d448598588
|
@ -292,7 +292,7 @@ static bool wgl_init(struct ra_ctx *ctx)
|
|||
p->opts = p->opts_cache->opts;
|
||||
|
||||
if (!vo_w32_init(ctx->vo))
|
||||
goto fail;
|
||||
return false;
|
||||
|
||||
if (ctx->opts.want_alpha)
|
||||
vo_w32_set_transparency(ctx->vo, ctx->opts.want_alpha);
|
||||
|
|
Loading…
Reference in New Issue