player: make --force-window work with opengl-cb

No reason not to? This probably avoids surprises if someone really tries
to combine them.
This commit is contained in:
wm4 2016-08-30 23:44:28 +02:00
parent d223959cda
commit f3b3702025
1 changed files with 1 additions and 0 deletions

View File

@ -813,6 +813,7 @@ int handle_force_window(struct MPContext *mpctx, bool force)
.input_ctx = mpctx->input,
.osd = mpctx->osd,
.encode_lavc_ctx = mpctx->encode_lavc_ctx,
.opengl_cb_context = mpctx->gl_cb_ctx,
};
mpctx->video_out = init_best_video_out(mpctx->global, &ex);
if (!mpctx->video_out)