Search
lxdream.org :: lxdream/src/pvr2/rendcore.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/rendcore.c
changeset 268:1ba7e5a7a3f7
prev223:f6c28fa9076b
next286:0fa5aae66f31
author nkeynes
date Wed Jan 10 08:38:02 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Fix last tile not actually being rendered
file annotate diff log raw
1.1 --- a/src/pvr2/rendcore.c Tue Sep 12 12:16:36 2006 +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);
.