Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 867:3af8840d5d8c
prev856:02ac5f37bfc9
next871:c0b7e21cb62b
author nkeynes
date Tue Oct 07 11:14:49 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Protect save-state load against corrupt image data
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Thu Sep 11 22:51:24 2008 +0000
1.2 +++ b/src/pvr2/pvr2.c Tue Oct 07 11:14:49 2008 +0000
1.3 @@ -278,12 +278,15 @@
1.4
1.5 if( has_frontbuffer ) {
1.6 displayed_render_buffer = pvr2_load_render_buffer(f);
1.7 + if( displayed_render_buffer == NULL )
1.8 + return FALSE;
1.9 display_driver->display_render_buffer( displayed_render_buffer );
1.10 count--;
1.11 }
1.12
1.13 for( i=0; i<count; i++ ) {
1.14 - pvr2_load_render_buffer( f );
1.15 + if( pvr2_load_render_buffer( f ) == NULL )
1.16 + return FALSE;
1.17 }
1.18 return TRUE;
1.19 }
.