Displays OpenGL version in the logs.
Reduce the number of calls to glSomethingPointer().

As long as we render textured polygons, we pass every vertices, colors
and texture coordinates in a single call. Then we call glDrawArrays()
with the right vertex index and vertex count when binding the textures.