From a1c838f382cef1c0fac5ec291f74e71cf791f8be Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 3 Jun 2009 19:59:19 +0000 Subject: Fixes against JOGL2 revision 1922 - Multi GL Profiles, plus setenv scripts git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@338 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/texture/TextureConvert.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/demos/texture') diff --git a/src/demos/texture/TextureConvert.java b/src/demos/texture/TextureConvert.java index 13180fc..8df6848 100755 --- a/src/demos/texture/TextureConvert.java +++ b/src/demos/texture/TextureConvert.java @@ -69,14 +69,15 @@ public class TextureConvert { String inputFile = args[0]; String outputFile = args[1]; + GLCapabilities caps = new GLCapabilities(null); + caps.setDoubleBuffered(false); + // Make a pbuffer to get an offscreen context - if (!GLDrawableFactory.getFactory().canCreateGLPbuffer()) { + if (!GLDrawableFactory.getFactory(caps).canCreateGLPbuffer()) { System.out.println("Pbuffer support not available (required to run this demo)"); System.exit(1); } - GLCapabilities caps = new GLCapabilities(); - caps.setDoubleBuffered(false); - GLPbuffer pbuffer = GLDrawableFactory.getFactory().createGLPbuffer(caps, null, 2, 2, null); + GLPbuffer pbuffer = GLDrawableFactory.getFactory(caps).createGLPbuffer(caps, null, 2, 2, null); pbuffer.getContext().makeCurrent(); GL gl = pbuffer.getGL(); -- cgit v1.2.3