fix sphere bug reported by Ken Russell

This commit is contained in:
Brian Matzon 2004-11-20 02:48:38 +00:00
parent f3221396ed
commit 9814e10832
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public class Sphere extends Quadric {
dtheta = 2.0f * GLU.PI / slices;
if (super.drawStyle == GLU.GLU_FILL) {
if (super.textureFlag) {
if (!super.textureFlag) {
// draw +Z end as a triangle fan
GL11.glBegin(GL11.GL_TRIANGLE_FAN);
GL11.glNormal3f(0.0f, 0.0f, 1.0f);