oculus1
changeset 27:9f783284a503
changed some FBO calls which I accidentally used the OpenGL 3.2 form instead of the more compatible one
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 26 Oct 2013 03:54:35 +0300 |
parents | ef4c9d8eeca7 |
children | cedf581048c7 |
files | src/main.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line diff
1.1 --- a/src/main.cc Wed Oct 02 04:09:37 2013 +0300 1.2 +++ b/src/main.cc Sat Oct 26 03:54:35 2013 +0300 1.3 @@ -143,7 +143,7 @@ 1.4 // create the FBO 1.5 glGenFramebuffersEXT(1, &fbo); 1.6 glBindFramebufferEXT(GL_FRAMEBUFFER, fbo); 1.7 - glFramebufferTextureEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, tex[0], 0); 1.8 + glFramebufferTexture2DEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex[0], 0); 1.9 glFramebufferRenderbufferEXT(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, zbuf); 1.10 } 1.11 1.12 @@ -241,7 +241,7 @@ 1.13 1.14 // draw left view 1.15 glBindFramebufferEXT(GL_FRAMEBUFFER, fbo); 1.16 - glFramebufferTextureEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, tex[0], 0); 1.17 + glFramebufferTexture2DEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex[0], 0); 1.18 1.19 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 1.20 1.21 @@ -258,7 +258,7 @@ 1.22 1.23 // draw right view 1.24 glBindFramebufferEXT(GL_FRAMEBUFFER, fbo); 1.25 - glFramebufferTextureEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, tex[1], 0); 1.26 + glFramebufferTexture2DEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex[1], 0); 1.27 1.28 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 1.29