Replaces glBegin/End with glDrawArrays, GL_QUADS with GL_TRIANGLES, and modifies shaders as needed. This was SVN commit r14153.
This was SVN commit r12551.