 <p>Try adding this piece of code to the top of your program</p> <pre><code>//screen cleared as blue glClearColor(0.0f, 0.0f, 0.4f, 0.0f); glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LESS); glEnable(GL_CULL_FACE); </code></pre> <p>this is from a textured cube program i wrote, you may already have some of these functions implemented, but from what i see you might be missing <code>glDepthFunc(GL_LESS)</code></p>