Small OpenGL optimization.