Search
lxdream.org :: lxdream :: r268:1ba7e5a7a3f7
lxdream 0.9.1
released Jun 29
Download Now
changeset268:1ba7e5a7a3f7
parent267:e59e36950761
child269:e41f9b1490d1
authornkeynes
dateWed Jan 10 08:38:02 2007 +0000 (17 years ago)
Fix last tile not actually being rendered
src/pvr2/rendcore.c
1.1 --- a/src/pvr2/rendcore.c Sat Jan 06 04:08:11 2007 +0000
1.2 +++ b/src/pvr2/rendcore.c Wed Jan 10 08:38:02 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: rendcore.c,v 1.6 2006-09-12 12:16:36 nkeynes Exp $
1.6 + * $Id: rendcore.c,v 1.7 2007-01-10 08:38:02 nkeynes Exp $
1.7 *
1.8 * PVR2 renderer core.
1.9 *
1.10 @@ -269,7 +269,7 @@
1.11 struct timeval tv_start, tv_end;
1.12 gettimeofday(&tv_start, NULL);
1.13 glEnable( GL_SCISSOR_TEST );
1.14 - while( (segment->control & SEGMENT_END) == 0 ) {
1.15 + do {
1.16 // fwrite_dump32v( (uint32_t *)segment, sizeof(struct tile_segment), 6, stderr );
1.17 int tilex = SEGMENT_X(segment->control);
1.18 int tiley = SEGMENT_Y(segment->control);
1.19 @@ -281,7 +281,6 @@
1.20 x1 >= clipx2 ||
1.21 y1 >= clipy2 ) {
1.22 /* Tile completely clipped, skip */
1.23 - segment++;
1.24 continue;
1.25 }
1.26
1.27 @@ -314,9 +313,7 @@
1.28 if( (segment->punchout_ptr & NO_POINTER) == 0 ) {
1.29 render_tile( segment->punchout_ptr, RENDER_NORMAL, cheap_shadow );
1.30 }
1.31 - segment++;
1.32 -
1.33 - }
1.34 + } while( ((segment++)->control & SEGMENT_END) == 0 );
1.35 glDisable( GL_SCISSOR_TEST );
1.36
1.37 gettimeofday(&tv_end, NULL);
.