From 3e92b4fd14b731bd6984aafd220059e27948aea8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20K=C3=B6nig?= Date: Sat, 2 Apr 2011 20:29:27 +0200 Subject: [PATCH] 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(-) 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; -- 2.30.2