Search
lxdream.org :: lxdream :: r1141:dc60a0987db9
lxdream 0.9.1
released Jun 29
Download Now
changeset1141:dc60a0987db9
parent1140:7dc1c71ece76
child1142:fd82bfba61c4
authornkeynes
dateTue Oct 26 09:22:22 2010 +1000 (9 years ago)
Remove unnecessary (and slow) glFinish() calls from the FBO driver
src/drivers/gl_fbo.c
1.1 --- a/src/drivers/gl_fbo.c Tue Oct 26 08:39:02 2010 +1000
1.2 +++ b/src/drivers/gl_fbo.c Tue Oct 26 09:22:22 2010 +1000
1.3 @@ -294,7 +294,6 @@
1.4
1.5 static gboolean gl_fbo_set_render_target( render_buffer_t buffer )
1.6 {
1.7 - glFinish();
1.8 glGetError();
1.9 int fb = gl_fbo_get_framebuffer( buffer->width, buffer->height );
1.10 gl_fbo_attach_texture( fb, buffer->buf_id );
1.11 @@ -317,21 +316,18 @@
1.12 */
1.13 static void gl_fbo_display_render_buffer( render_buffer_t buffer )
1.14 {
1.15 - glFinish();
1.16 gl_fbo_detach();
1.17 gl_display_render_buffer( buffer );
1.18 }
1.19
1.20 static void gl_fbo_load_frame_buffer( frame_buffer_t frame, render_buffer_t buffer )
1.21 {
1.22 - glFinish();
1.23 gl_fbo_detach();
1.24 gl_load_frame_buffer( frame, buffer->buf_id );
1.25 }
1.26
1.27 static void gl_fbo_display_blank( uint32_t colour )
1.28 {
1.29 - glFinish();
1.30 gl_fbo_detach();
1.31 gl_display_blank( colour );
1.32 }
.