From 0c81c5489b0b65392b28877faf0d0e68022e6181 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 17 Jul 2013 03:32:55 +0200 Subject: Adapt to to JOGL commit 78abc89be7f3935f26802cc0db33f61fc2c65de0 - LDrawableFactory.canCreateGLPbuffer(..) add GLProfile argument, similar to canCreateFBO(..) --- src/demos/hdr/HDR.java | 2 +- src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java | 2 +- src/demos/misc/TiledRendering.java | 2 +- src/demos/proceduralTexturePhysics/Water.java | 2 +- src/demos/texture/TextureConvert.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/demos/hdr/HDR.java b/src/demos/hdr/HDR.java index 746ea7d..47d2589 100755 --- a/src/demos/hdr/HDR.java +++ b/src/demos/hdr/HDR.java @@ -318,7 +318,7 @@ public class HDR extends Demo { caps.setAlphaBits(floatAlphaBits); caps.setDepthBits(floatDepthBits); int[] tmp = new int[1]; - if (!GLDrawableFactory.getFactory(GLProfile.getDefault()).canCreateGLPbuffer(null)) { + if (!GLDrawableFactory.getFactory(GLProfile.getDefault()).canCreateGLPbuffer(null, caps.getGLProfile())) { unavailableExtension("Can not create pbuffer"); } if (pbuffer != null) { diff --git a/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java b/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java index 509b42e..d6b6c2f 100644 --- a/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java +++ b/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java @@ -276,7 +276,7 @@ public class HWShadowmapsSimple extends Demo { GLCapabilities caps = new GLCapabilities(gl.getGLProfile()); caps.setDoubleBuffered(false); - if (!GLDrawableFactory.getFactory(gl.getGLProfile()).canCreateGLPbuffer(null)) { + if (!GLDrawableFactory.getFactory(gl.getGLProfile()).canCreateGLPbuffer(null, gl.getGLProfile())) { unavailableExtension("Can not create pbuffer"); } if (pbuffer != null) { diff --git a/src/demos/misc/TiledRendering.java b/src/demos/misc/TiledRendering.java index 86de0bb..c2a614f 100755 --- a/src/demos/misc/TiledRendering.java +++ b/src/demos/misc/TiledRendering.java @@ -41,7 +41,7 @@ public class TiledRendering { GLCapabilities caps = new GLCapabilities(null); caps.setDoubleBuffered(false); - if (!GLDrawableFactory.getFactory(caps.getGLProfile()).canCreateGLPbuffer(null)) { + if (!GLDrawableFactory.getFactory(caps.getGLProfile()).canCreateGLPbuffer(null, caps.getGLProfile())) { System.out.println("Demo requires pbuffer support"); System.exit(1); } diff --git a/src/demos/proceduralTexturePhysics/Water.java b/src/demos/proceduralTexturePhysics/Water.java index d62379b..94ed0ce 100644 --- a/src/demos/proceduralTexturePhysics/Water.java +++ b/src/demos/proceduralTexturePhysics/Water.java @@ -215,7 +215,7 @@ public class Water { // create the pbuffer. Will use this as an offscreen rendering buffer. // it allows rendering a texture larger than our window. caps.setDoubleBuffered(false); - if (!GLDrawableFactory.getFactory(caps.getGLProfile()).canCreateGLPbuffer(null)) { + if (!GLDrawableFactory.getFactory(caps.getGLProfile()).canCreateGLPbuffer(null, caps.getGLProfile())) { throw new GLException("Pbuffers not supported with this graphics card"); } pbuffer = GLDrawableFactory.getFactory(caps.getGLProfile()).createGLPbuffer( diff --git a/src/demos/texture/TextureConvert.java b/src/demos/texture/TextureConvert.java index cd198e0..6287acb 100755 --- a/src/demos/texture/TextureConvert.java +++ b/src/demos/texture/TextureConvert.java @@ -75,7 +75,7 @@ public class TextureConvert { caps.setDoubleBuffered(false); // Make a pbuffer to get an offscreen context - if (!GLDrawableFactory.getFactory(glp).canCreateGLPbuffer(null)) { + if (!GLDrawableFactory.getFactory(glp).canCreateGLPbuffer(null, glp)) { System.out.println("Pbuffer support not available (required to run this demo)"); System.exit(1); } -- cgit v1.2.3