summaryrefslogtreecommitdiffstats
path: root/src/demos/texture
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-06-03 19:59:19 +0000
committerSven Gothel <[email protected]>2009-06-03 19:59:19 +0000
commita1c838f382cef1c0fac5ec291f74e71cf791f8be (patch)
treefbe6dd9a9e6fa9264b2c304984eebe77377c1117 /src/demos/texture
parent77a86250f12bd026c0fac6ba6cd6ff3f196f1d95 (diff)
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
Diffstat (limited to 'src/demos/texture')
-rwxr-xr-xsrc/demos/texture/TextureConvert.java9
1 files changed, 5 insertions, 4 deletions
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();