Changed GL_QUADS to GL_TRIANGLE_FANS and specified the version used.