Search
lxdream.org :: lxdream :: r373:0ac2ac96a4c5
lxdream 0.9.1
released Jun 29
Download Now
changeset373:0ac2ac96a4c5
parent372:86aa060ddcec
child374:8f80a795513e
authornkeynes
dateTue Sep 11 01:05:05 2007 +0000 (12 years ago)
If a render buffer can't be obtained, skip the render
src/pvr2/pvr2.c
1.1 --- a/src/pvr2/pvr2.c Sat Sep 08 04:38:38 2007 +0000
1.2 +++ b/src/pvr2/pvr2.c Tue Sep 11 01:05:05 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.c,v 1.44 2007-02-11 10:09:32 nkeynes Exp $
1.6 + * $Id: pvr2.c,v 1.45 2007-09-11 01:05:05 nkeynes Exp $
1.7 *
1.8 * PVR2 (Video) Core module implementation and MMIO registers.
1.9 *
1.10 @@ -327,7 +327,9 @@
1.11 pvr2_state.save_next_render_filename = NULL;
1.12 }
1.13 render_buffer_t buffer = pvr2_next_render_buffer();
1.14 - pvr2_render_scene( buffer );
1.15 + if( buffer != NULL ) {
1.16 + pvr2_render_scene( buffer );
1.17 + }
1.18 asic_event( EVENT_PVR_RENDER_DONE );
1.19 break;
1.20 case RENDER_POLYBASE:
1.21 @@ -784,7 +786,7 @@
1.22 if( result != NULL ) {
1.23 render_buffers[render_buffer_count++] = result;
1.24 } else {
1.25 - ERROR( "Failed to obtain a render buffer!" );
1.26 + // ERROR( "Failed to obtain a render buffer!" );
1.27 return NULL;
1.28 }
1.29 }
.