From: Christian König Date: Sat, 2 Apr 2011 18:29:27 +0000 (+0200) Subject: g3dvl/xvmc: fix a stupid of by one bug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e92b4fd14b731bd6984aafd220059e27948aea8;p=mesa.git g3dvl/xvmc: fix a stupid of by one bug --- 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;