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

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

TG
Just popping in
Just popping in
Posts: 3
Joined: Wed Jun 06, 2007 18:10

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

Postby TG » Sat Jun 09, 2007 18:31

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.

TG
Just popping in
Just popping in
Posts: 3
Joined: Wed Jun 06, 2007 18:10

Postby TG » Sat Jun 09, 2007 21:38

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 18 guests