Page 1 of 1

setText() causes the seen to render in black (OpenGL/GLFW)

Posted: Sat Jun 09, 2007 18:31
by TG
Hi,
For some odd reason, my scene gets rendered in black when I call setText(). I'm using the precompiled binaries, in combination with OpenGL and GLFW.
Here's my sourcecode: http://paste.uni.cc/16182 (It's hacky because I just want a basic hello world.)

Screenshot:
Image
Screenshot without line 52:
Image

Can anyone tell me what i'm doing wrong? Thanks in advance.

Posted: Sat Jun 09, 2007 21:38
by TG
I fixed the problem, here's the solution for those who encounter the same problem: renderGUI() causes a texture to be bound, and because I don't bind the 0 texture, my quads get rendered in black. After I added glBindTexture(GL_TEXTURE_2D, 0); to my draw function, everything works like it should.