# HG changeset patch # User John Tsiombikas # Date 1382748875 -10800 # Node ID 9f783284a5039165934020aeffd61e96954ab551 # Parent ef4c9d8eeca7c3d4852f8352d14068aa24edc79c changed some FBO calls which I accidentally used the OpenGL 3.2 form instead of the more compatible one diff -r ef4c9d8eeca7 -r 9f783284a503 src/main.cc --- a/src/main.cc Wed Oct 02 04:09:37 2013 +0300 +++ b/src/main.cc Sat Oct 26 03:54:35 2013 +0300 @@ -143,7 +143,7 @@ // create the FBO glGenFramebuffersEXT(1, &fbo); glBindFramebufferEXT(GL_FRAMEBUFFER, fbo); - glFramebufferTextureEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, tex[0], 0); + glFramebufferTexture2DEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex[0], 0); glFramebufferRenderbufferEXT(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, zbuf); } @@ -241,7 +241,7 @@ // draw left view glBindFramebufferEXT(GL_FRAMEBUFFER, fbo); - glFramebufferTextureEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, tex[0], 0); + glFramebufferTexture2DEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex[0], 0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); @@ -258,7 +258,7 @@ // draw right view glBindFramebufferEXT(GL_FRAMEBUFFER, fbo); - glFramebufferTextureEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, tex[1], 0); + glFramebufferTexture2DEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex[1], 0); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);