Handle render modes besides GL_TRIANGLES