changeset 36251:e2073bd749cf

Ensure surfaces are cleared after resize.
author reimar
date Sat, 15 Jun 2013 19:59:24 +0000
parents 7e4a8748cf9a
children 2af48d236902
files libvo/vo_vdpau.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vdpau.c	Sat Jun 15 16:11:47 2013 +0000
+++ b/libvo/vo_vdpau.c	Sat Jun 15 19:59:24 2013 +0000
@@ -326,6 +326,12 @@
             mp_msg(MSGT_VO, MSGL_DBG2, "OUT CREATE: %u\n", output_surfaces[i]);
         }
     }
+    // clear surfaces
+    for (i = 0; i <= NUM_OUTPUT_SURFACES; i++) {
+        vdp_output_surface_render_output_surface(output_surfaces[i], NULL,
+                                                 VDP_INVALID_HANDLE, NULL,
+                                                 NULL, NULL, VDP_OUTPUT_SURFACE_RENDER_ROTATE_0);
+    }
     video_to_output_surface();
     if (visible_buf) {
         draw_eosd();