summaryrefslogtreecommitdiffstats
path: root/libvo/vo_direct3d.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_direct3d.c')
-rw-r--r--libvo/vo_direct3d.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvo/vo_direct3d.c b/libvo/vo_direct3d.c
index 64b84e01a6..ede069ee77 100644
--- a/libvo/vo_direct3d.c
+++ b/libvo/vo_direct3d.c
@@ -492,7 +492,8 @@ static int resize_d3d(void)
if (vo_dwidth > priv->cur_backbuf_width ||
vo_dheight > priv->cur_backbuf_height) {
- change_d3d_backbuffer (BACKBUFFER_RESET);
+ if (!change_d3d_backbuffer(BACKBUFFER_RESET))
+ return 0;
}
/* Destroy the OSD textures. They should always match the new dimensions