Search
lxdream.org :: lxdream :: r1157:20053990db61
lxdream 0.9.1
released Jun 29
Download Now
changeset1157:20053990db61
parent1156:d124a1c833cb
child1158:2b237e3417dd
authornkeynes
dateWed Jan 19 12:50:48 2011 +1000 (9 years ago)
Rip out force_vsync - this didn't work even if it was turned on, which it
wasn't
src/pvr2/pvr2.c
1.1 --- a/src/pvr2/pvr2.c Wed Jan 19 10:45:06 2011 +1000
1.2 +++ b/src/pvr2/pvr2.c Wed Jan 19 12:50:48 2011 +1000
1.3 @@ -47,7 +47,6 @@
1.4 static render_buffer_t pvr2_next_render_buffer( );
1.5 static render_buffer_t pvr2_frame_buffer_to_render_buffer( frame_buffer_t frame );
1.6 uint32_t pvr2_get_sync_status();
1.7 -static gboolean force_vsync = FALSE;
1.8 static int output_colour_formats[] = { COLFMT_BGRA1555, COLFMT_RGB565, COLFMT_BGR888, COLFMT_BGRA8888 };
1.9 static int render_colour_formats[8] = {
1.10 COLFMT_BGRA1555, COLFMT_RGB565, COLFMT_BGRA4444, COLFMT_BGRA1555,
1.11 @@ -356,28 +355,13 @@
1.12 return pvr2_state.frame_count;
1.13 }
1.14
1.15 -/**
1.16 - * Draw the base (emulated) frame only.
1.17 - */
1.18 -static void pvr2_draw_base_frame()
1.19 -{
1.20 - if( displayed_render_buffer == NULL ) {
1.21 - display_driver->display_blank(displayed_border_colour);
1.22 - } else {
1.23 - display_driver->display_render_buffer(displayed_render_buffer);
1.24 - }
1.25 -}
1.26 -
1.27 void pvr2_draw_frame()
1.28 {
1.29 if( display_driver != NULL && display_driver != &display_null_driver ) {
1.30 - if( force_vsync ) {
1.31 - glDrawBuffer( GL_BACK );
1.32 - pvr2_draw_base_frame();
1.33 - display_driver->swap_buffers();
1.34 + if( displayed_render_buffer == NULL ) {
1.35 + display_driver->display_blank(displayed_border_colour);
1.36 } else {
1.37 - glDrawBuffer( GL_FRONT );
1.38 - pvr2_draw_base_frame();
1.39 + display_driver->display_render_buffer(displayed_render_buffer);
1.40 }
1.41 }
1.42 }
.