From 20b2141ffe28a75536674d80c45ae8648331f3e3 Mon Sep 17 00:00:00 2001 From: Quantum Date: Thu, 21 Nov 2013 20:59:33 -0500 Subject: [PATCH] Switched to a triangle strip, should be much faster. --- punyverse/glgeom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/punyverse/glgeom.py b/punyverse/glgeom.py index 12c6f38..161a200 100644 --- a/punyverse/glgeom.py +++ b/punyverse/glgeom.py @@ -180,7 +180,7 @@ def normal_sphere(r, divide, tex, normal, lighting=True, fv4=GLfloat * 4): twopi_divide = TWOPI / divide pi_divide = pi / divide - glBegin(GL_QUAD_STRIP) + glBegin(GL_TRIANGLE_STRIP) for j in xrange(divide + 1): phi1 = j * twopi_divide phi2 = (j + 1) * twopi_divide