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 Fri Oct 22 20:55:32 2010 +1000 (13 years ago)
permissions -rw-r--r--
last change Dump more information with --gl-info, and print it a little more nicely
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 Fri Oct 22 20:55:32 2010 +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 }
.