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:
parent
555c15efba
commit
65f9a688a4
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user