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 445:75c668cdfdc0
prev443:1163eb5c0590
next477:9a373f2ff009
author nkeynes
date Tue Oct 16 12:27:28 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Unbind the framebuffer after initialization
file annotate diff log raw
1.1 --- a/src/drivers/gl_fbo.c Sat Oct 13 04:01:02 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()
.