diff options
author | Sven Gothel <[email protected]> | 2009-06-11 07:50:34 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-06-11 07:50:34 +0000 |
commit | 845878f2864d451e38f6e188d142580e69ad1f03 (patch) | |
tree | 60affc91133f90b41754245b9249b66257600325 /src/demos/texture/TextureConvert.java | |
parent | 3d95fab3cd7be5b260afa2be371b0ac7b4866790 (diff) |
Changes in respect to JOGL2 revision 1929
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@342 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, 2 insertions, 2 deletions
diff --git a/src/demos/texture/TextureConvert.java b/src/demos/texture/TextureConvert.java index 8df6848..aaf75a2 100755 --- a/src/demos/texture/TextureConvert.java +++ b/src/demos/texture/TextureConvert.java @@ -73,11 +73,11 @@ public class TextureConvert { caps.setDoubleBuffered(false); // Make a pbuffer to get an offscreen context - if (!GLDrawableFactory.getFactory(caps).canCreateGLPbuffer()) { + if (!GLDrawableFactory.getFactory(caps.getGLProfile()).canCreateGLPbuffer()) { System.out.println("Pbuffer support not available (required to run this demo)"); System.exit(1); } - GLPbuffer pbuffer = GLDrawableFactory.getFactory(caps).createGLPbuffer(caps, null, 2, 2, null); + GLPbuffer pbuffer = GLDrawableFactory.getFactory(caps.getGLProfile()).createGLPbuffer(caps, null, 2, 2, null); pbuffer.getContext().makeCurrent(); GL gl = pbuffer.getGL(); |