From 3e92b4fd14b731bd6984aafd220059e27948aea8 Mon Sep 17 00:00:00 2001 From: Christian König Date: Sat, 2 Apr 2011 20:29:27 +0200 Subject: g3dvl/xvmc: fix a stupid of by one bug --- src/gallium/state_trackers/xorg/xvmc/surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/state_trackers/xorg') diff --git a/src/gallium/state_trackers/xorg/xvmc/surface.c b/src/gallium/state_trackers/xorg/xvmc/surface.c index 67dc57d4344..23f97b3dac5 100644 --- a/src/gallium/state_trackers/xorg/xvmc/surface.c +++ b/src/gallium/state_trackers/xorg/xvmc/surface.c @@ -155,7 +155,7 @@ unmap_and_flush_surface(XvMCSurfacePrivate *surface) assert(surface); - for ( i = 0; i < 3; ++i ) { + for ( i = 0; i < 2; ++i ) { if (surface->ref_surfaces[i]) { XvMCSurfacePrivate *ref = surface->ref_surfaces[i]->privData; -- cgit v1.2.3