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 1141:dc60a0987db9
prev1076:18c164e8aec4
next1166:f405d42a9786
author nkeynes
date Tue Oct 26 09:22:22 2010 +1000 (10 years ago)
permissions -rw-r--r--
last change Remove unnecessary (and slow) glFinish() calls from the FBO driver
file annotate diff log raw
1.1 --- a/src/drivers/gl_fbo.c Mon Aug 03 08:41:11 2009 +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 }
.