Search
lxdream.org :: lxdream/src/drivers/gl_fbo.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/gl_fbo.c
changeset 1076:18c164e8aec4
prev877:8331f4aa3616
next1141:dc60a0987db9
author nkeynes
date Mon Aug 03 08:41:11 2009 +1000 (10 years ago)
permissions -rw-r--r--
last change Rearrange frame output slightly.
pvr2_display_frame renamed to pvr2_next_frame and changed to update the
frame data without displaying it.
pvr2_redraw_display renamed to pvr2_draw_frame, called internally after
pvr2_next_frame
Add swap_buffers() method to the display driver
Remove explicit glDrawBuffer() calls where they're referencing the window.
pvr2_draw_frame now gets to decide where to draw.
Add force_vsync flag to force double-buffering (not configurable yet)
file annotate diff log raw
1.1 --- a/src/drivers/gl_fbo.c Thu Oct 16 12:06:24 2008 +0000
1.2 +++ b/src/drivers/gl_fbo.c Mon Aug 03 08:41:11 2009 +1000
1.3 @@ -113,8 +113,6 @@
1.4 driver->read_render_buffer = gl_fbo_read_render_buffer;
1.5
1.6 glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
1.7 - glDrawBuffer(GL_FRONT);
1.8 - glReadBuffer(GL_FRONT);
1.9 }
1.10
1.11 void gl_fbo_shutdown()
1.12 @@ -341,6 +339,7 @@
1.13 void gl_fbo_detach()
1.14 {
1.15 glBindFramebufferEXT( GL_FRAMEBUFFER_EXT, 0 );
1.16 + /* Make sure texture attachment is not a current draw/read buffer */
1.17 glDrawBuffer( GL_FRONT );
1.18 glReadBuffer( GL_FRONT );
1.19 }
.