OpenGL ES 2.0 Not rendering correctly

view story

http://stackoverflow.com – This is supposed to render a cube. It looks like some parts of the rear faces are rendering in front of the ones closest to the camera. This happens even if I set it farther away. This is from my renderer: public void onDrawFrame(GL10 unused) { GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT); // Set the camera position Matrix.setLookAtM(mVMatrix, 0, 0, 0, -3f, 0f, 0f, 0f, 0f, 1.0f, 0.0f); Matrix.setIdentityM(mModelMatrix, 0); Matrix.setRotateM(mModelMatrix, 0, mAngle, 0f, 1f, 0.0f); Matrix.multiplyMM(mMVPMatrix, 0, mVMatrix, 0, mModelMatrix, 0); Matrix.multiplyMM(mM (HowTos)