Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 639:162ee7614b60
prev586:2a3ba82cf243
next645:a7392098299c
author nkeynes
date Mon Feb 18 09:21:43 2008 +0000 (12 years ago)
branchlxdream-render
permissions -rw-r--r--
last change More render WIP - initial glrender.c
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Tue Jan 15 20:50:23 2008 +0000
1.2 +++ b/src/pvr2/pvr2.c Mon Feb 18 09:21:43 2008 +0000
1.3 @@ -454,9 +454,10 @@
1.4 g_free( pvr2_state.save_next_render_filename );
1.5 pvr2_state.save_next_render_filename = NULL;
1.6 }
1.7 + pvr2_scene_read();
1.8 render_buffer_t buffer = pvr2_next_render_buffer();
1.9 if( buffer != NULL ) {
1.10 - pvr2_render_scene( buffer );
1.11 + pvr2_scene_render( buffer );
1.12 }
1.13 asic_event( EVENT_PVR_RENDER_DONE );
1.14 break;
1.15 @@ -940,9 +941,9 @@
1.16 render_addr = (render_addr & 0x00FFFFFF) + PVR2_RAM_BASE;
1.17 }
1.18
1.19 - int width, height;
1.20 + int width = pvr2_scene_buffer_width();
1.21 + int height = pvr2_scene_buffer_height();
1.22 int colour_format = pvr2_render_colour_format[render_mode&0x07];
1.23 - pvr2_render_getsize( &width, &height );
1.24
1.25 result = pvr2_alloc_render_buffer( render_addr, width, height );
1.26 /* Setup the buffer */
.