From b3d862d6af331c198d3b4097f2db4554838d77ca Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 19 Nov 2004 20:51:02 +0000 Subject: Fixed bug pointed out by art in the JOGL forums where cap of sphere was not being drawn if filled and untextured. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@175 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/GLUquadricImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/net/java/games/jogl/impl/GLUquadricImpl.java b/src/net/java/games/jogl/impl/GLUquadricImpl.java index cca415cc4..cd5f3df36 100755 --- a/src/net/java/games/jogl/impl/GLUquadricImpl.java +++ b/src/net/java/games/jogl/impl/GLUquadricImpl.java @@ -869,7 +869,7 @@ class GLUquadricImpl implements GLUquadric { dtheta = 2.0f * PI / slices; if (drawStyle == GLU.GLU_FILL) { - if (textureFlag) { + if (!textureFlag) { // draw +Z end as a triangle fan gl.glBegin(GL.GL_TRIANGLE_FAN); gl.glNormal3f(0.0f, 0.0f, 1.0f); -- cgit v1.2.3