summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/vo_direct3d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c
index 34ddafdd1e..c942c964f5 100644
--- a/video/out/vo_direct3d.c
+++ b/video/out/vo_direct3d.c
@@ -793,7 +793,7 @@ static bool resize_d3d(d3d_priv *priv)
return 0;
}
- if (!priv->d3d_device)
+ if (!priv->d3d_device || !priv->image_format)
return 1;
if (!create_d3d_surfaces(priv))