Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 645:a7392098299c
prev639:162ee7614b60
next649:620c5c6496b5
author nkeynes
date Thu Mar 06 08:22:00 2008 +0000 (12 years ago)
branchlxdream-render
permissions -rw-r--r--
last change More refactor work in progress - nearly done now
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Mon Feb 18 09:21:43 2008 +0000
1.2 +++ b/src/pvr2/pvr2.c Thu Mar 06 08:22:00 2008 +0000
1.3 @@ -203,12 +203,17 @@
1.4 }
1.5
1.6 render_buffer_t buffer = pvr2_frame_buffer_to_render_buffer(frame);
1.7 - assert( buffer != NULL );
1.8 - fread( &buffer->rowstride, sizeof(buffer->rowstride), 1, f );
1.9 - fread( &buffer->colour_format, sizeof(buffer->colour_format), 1, f );
1.10 - fread( &buffer->address, sizeof(buffer->address), 1, f );
1.11 - fread( &buffer->scale, sizeof(buffer->scale), 1, f );
1.12 - fread( &buffer->flushed, sizeof(buffer->flushed), 1, f );
1.13 + if( buffer != NULL ) {
1.14 + fread( &buffer->rowstride, sizeof(buffer->rowstride), 1, f );
1.15 + fread( &buffer->colour_format, sizeof(buffer->colour_format), 1, f );
1.16 + fread( &buffer->address, sizeof(buffer->address), 1, f );
1.17 + fread( &buffer->scale, sizeof(buffer->scale), 1, f );
1.18 + fread( &buffer->flushed, sizeof(buffer->flushed), 1, f );
1.19 + } else {
1.20 + fseek( f, sizeof(buffer->rowstride)+sizeof(buffer->colour_format)+
1.21 + sizeof(buffer->address)+sizeof(buffer->scale)+
1.22 + sizeof(buffer->flushed), SEEK_CUR );
1.23 + }
1.24 return buffer;
1.25 }
1.26
1.27 @@ -258,9 +263,7 @@
1.28 }
1.29
1.30 for( i=0; i<count; i++ ) {
1.31 - if( pvr2_load_render_buffer( f ) == NULL ) {
1.32 - return FALSE;
1.33 - }
1.34 + pvr2_load_render_buffer( f );
1.35 }
1.36 return TRUE;
1.37 }
.