diff options
author | Kenneth Russel <[email protected]> | 2006-02-01 23:12:52 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-02-01 23:12:52 +0000 |
commit | dd35e0b915c0b61438b961b791eac9d200eecd27 (patch) | |
tree | 89ad033fb0a11ea0c3b2c2515c342b7754ec5709 /src/demos/texture/TextureConvert.java | |
parent | 153f382e77e276c178fecd650340bc04ca1fc869 (diff) |
Fixed potential problem in TextureConvert demo where it wasn't
explicitly requesting a single-buffered pbuffer. Exposed gear
rendering routine from Gears demo as public static in anticipation of
forthcoming tiled rendering demo.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@170 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/texture/TextureConvert.java')
-rwxr-xr-x | src/demos/texture/TextureConvert.java | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |