Replaces glBegin/End with glDrawArrays, GL_QUADS with GL_TRIANGLES, and replaces glPush/PopAttrib by resetting the viewport manually. Adjusts GLSL shaders for these changes. This was SVN commit r14152.
This was SVN commit r12755.