mirror of
https://github.com/mpv-player/mpv
synced 2024-09-05 02:48:21 +02:00
cocoa_common: fix a bug in window initialization error
We didn't bail out soon enough. Bug was introduced by 134f3e97
.
This commit is contained in:
parent
1d11db6596
commit
3789e1bebf
@ -462,8 +462,10 @@ int vo_cocoa_config_window(struct vo *vo, uint32_t d_width,
|
||||
update_state_sizes(s, d_width, d_height);
|
||||
|
||||
if (!(s->window || s->glContext)) {
|
||||
if (create_window(vo, d_width, d_height, flags, gl3profile) < 0)
|
||||
if (create_window(vo, d_width, d_height, flags, gl3profile) < 0) {
|
||||
rv = -1;
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
update_window(vo);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user