summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2022-01-04 10:07:38 +0200
committerJan Ekström <jeebjp@gmail.com>2022-02-02 21:48:01 +0200
commit65f9a688a4fd282528b0c787db8bc56024d14a75 (patch)
treead595d30dea71d36837f79d2aa1c8b064256cca9 /video/out
parent555c15efba09c3f4ed0696606d8533cb82ee11a0 (diff)
downloadmpv-65f9a688a4fd282528b0c787db8bc56024d14a75.tar.bz2
mpv-65f9a688a4fd282528b0c787db8bc56024d14a75.tar.xz
vo_gpu/d3d11: early exit in start_frame if output fbo is nullptr
Diffstat (limited to 'video/out')
-rw-r--r--video/out/d3d11/context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/d3d11/context.c b/video/out/d3d11/context.c
index 57feb27530..3d4bf165fd 100644
--- a/video/out/d3d11/context.c
+++ b/video/out/d3d11/context.c
@@ -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;