Search
lxdream.org :: lxdream :: r445:75c668cdfdc0
lxdream 0.9.1
released Jun 29
Download Now
changeset445:75c668cdfdc0
parent444:74c38d57eb11
child446:def93c34c84c
authornkeynes
dateTue Oct 16 12:27:28 2007 +0000 (12 years ago)
Unbind the framebuffer after initialization
src/drivers/gl_fbo.c
1.1 --- a/src/drivers/gl_fbo.c Sun Oct 14 09:30:16 2007 +0000
1.2 +++ b/src/drivers/gl_fbo.c Tue Oct 16 12:27:28 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gl_fbo.c,v 1.5 2007-10-13 04:01:02 nkeynes Exp $
1.6 + * $Id: gl_fbo.c,v 1.6 2007-10-16 12:27:28 nkeynes Exp $
1.7 *
1.8 * GL framebuffer-based driver shell. This requires the EXT_framebuffer_object
1.9 * extension, but is much nicer/faster/etc than pbuffers when it's available.
1.10 @@ -96,6 +96,10 @@
1.11 driver->display_frame_buffer = gl_fbo_display_frame_buffer;
1.12 driver->display_blank = gl_fbo_display_blank;
1.13 driver->read_render_buffer = gl_fbo_read_render_buffer;
1.14 +
1.15 + glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
1.16 + glDrawBuffer(GL_FRONT);
1.17 + glReadBuffer(GL_FRONT);
1.18 }
1.19
1.20 void gl_fbo_shutdown()
.