1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-11 17:37:23 +00:00

vo_gpu/d3d11: early exit in start_frame if output fbo is nullptr

This commit is contained in:
Jan Ekström 2022-01-04 10:07:38 +02:00
parent 555c15efba
commit 65f9a688a4

View File

@ -199,6 +199,9 @@ static bool d3d11_start_frame(struct ra_swapchain *sw, struct ra_fbo *out_fbo)
{
struct priv *p = sw->priv;
if (!out_fbo)
return true;
if (!p->backbuffer)
return false;