changeset 36206:7227ed885f0c

Fix expose event redraw to actually redraw the correct frame.
author reimar
date Thu, 06 Jun 2013 13:05:16 +0000
parents c922d2550d20
children 658a648d3301
files libvo/vo_vdpau.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_vdpau.c	Thu Jun 06 13:03:50 2013 +0000
+++ b/libvo/vo_vdpau.c	Thu Jun 06 13:05:16 2013 +0000
@@ -781,7 +781,7 @@
             /* redraw the last visible buffer */
             VdpStatus vdp_st;
             vdp_st = vdp_presentation_queue_display(vdp_flip_queue,
-                                                    output_surfaces[surface_num],
+                                                    output_surfaces[(surface_num + NUM_OUTPUT_SURFACES - 1) % NUM_OUTPUT_SURFACES],
                                                     vo_dwidth, vo_dheight,
                                                     0);
             CHECK_ST_WARNING("Error when calling vdp_presentation_queue_display")