Search
lxdream.org :: lxdream :: r276:1e594c2804f8
lxdream 0.9.1
released Jun 29
Download Now
changeset276:1e594c2804f8
parent275:005945dbb813
child277:fcc1274776cb
authornkeynes
dateFri Jan 12 10:15:06 2007 +0000 (17 years ago)
Fix crash on translucent sprites (mishandling quad array)
src/pvr2/rendsort.c
1.1 --- a/src/pvr2/rendsort.c Thu Jan 11 12:15:36 2007 +0000
1.2 +++ b/src/pvr2/rendsort.c Fri Jan 12 10:15:06 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: rendsort.c,v 1.1 2006-09-12 11:54:19 nkeynes Exp $
1.6 + * $Id: rendsort.c,v 1.2 2007-01-12 10:15:06 nkeynes Exp $
1.7 *
1.8 * PVR2 renderer routines for depth sorted polygons
1.9 *
1.10 @@ -121,7 +121,7 @@
1.11 }
1.12 } else if( (entry & 0xE0000000) == 0xA0000000 ) {
1.13 /* Sprite(s) */
1.14 - int strip_count = (entry >> 25) & 0x0F;
1.15 + int strip_count = ((entry >> 25) & 0x0F)+1;
1.16 int polygon_length = 4 * vertex_length + context_length;
1.17 int i;
1.18 for( i=0; i<strip_count; i++ ) {
.