diff options
-rw-r--r-- | src/demos/gears/Gears.java | 12 | ||||
-rwxr-xr-x | src/demos/texture/TextureConvert.java | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/src/demos/gears/Gears.java b/src/demos/gears/Gears.java index c585527..a134614 100644 --- a/src/demos/gears/Gears.java +++ b/src/demos/gears/Gears.java @@ -149,12 +149,12 @@ public class Gears implements GLEventListener, MouseListener, MouseMotionListene public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {} - private void gear(GL gl, - float inner_radius, - float outer_radius, - float width, - int teeth, - float tooth_depth) + public static void gear(GL gl, + float inner_radius, + float outer_radius, + float width, + int teeth, + float tooth_depth) { int i; float r0, r1, r2; diff --git a/src/demos/texture/TextureConvert.java b/src/demos/texture/TextureConvert.java index f4af495..728aa9c 100755 --- a/src/demos/texture/TextureConvert.java +++ b/src/demos/texture/TextureConvert.java @@ -68,7 +68,9 @@ public class TextureConvert { System.out.println("Pbuffer support not available (required to run this demo)"); System.exit(1); } - GLPbuffer pbuffer = GLDrawableFactory.getFactory().createGLPbuffer(new GLCapabilities(), null, 2, 2, null); + GLCapabilities caps = new GLCapabilities(); + caps.setDoubleBuffered(false); + GLPbuffer pbuffer = GLDrawableFactory.getFactory().createGLPbuffer(caps, null, 2, 2, null); pbuffer.getContext().makeCurrent(); GL gl = pbuffer.getGL(); |