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
1 changed files with 3 additions and 0 deletions

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;