Rendering Multiple OpenGL 2D Textures, Only the First One Is Rendered

Exactly a month ago I was dealing with the problem of rendering some text on the screen using the font + texture rendering method. The problem I had was only the first text block was rendered to the screen. After a little bit of digging around I found this question on StackOverflow. Although the answers there did not solve my problem, I realized that the problem was caused by having depth testing enabled while rendering the 2D blocks. All I had to do was place a call to glDisable(GL_DEPTH_TEST).

Leave a Reply

Your email address will not be published.