summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/demos/hdr/HDR.java4
-rw-r--r--src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java2
-rw-r--r--src/demos/proceduralTexturePhysics/Water.java4
3 files changed, 4 insertions, 6 deletions
diff --git a/src/demos/hdr/HDR.java b/src/demos/hdr/HDR.java
index ea2cfc5..5cdf56b 100755
--- a/src/demos/hdr/HDR.java
+++ b/src/demos/hdr/HDR.java
@@ -281,8 +281,8 @@ public class HDR extends Demo {
caps.setAlphaBits(floatAlphaBits);
caps.setDepthBits(floatDepthBits);
int[] tmp = new int[1];
- if (!GLDrawableFactory.getFactory().canCreateGLPbuffer(caps, pbuffer_w, pbuffer_h)) {
- unavailableExtension("Can not create pbuffer of size (" + pbuffer_w + ", " + pbuffer_h + ")");
+ if (!GLDrawableFactory.getFactory().canCreateGLPbuffer()) {
+ unavailableExtension("Can not create pbuffer");
}
if (pbuffer != null) {
pbuffer.destroy();
diff --git a/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java b/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java
index a1d6721..69dd3db 100644
--- a/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java
+++ b/src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java
@@ -248,7 +248,7 @@ public class HWShadowmapsSimple extends Demo {
GLCapabilities caps = new GLCapabilities();
caps.setDoubleBuffered(false);
- if (!GLDrawableFactory.getFactory().canCreateGLPbuffer(caps, TEX_SIZE, TEX_SIZE)) {
+ if (!GLDrawableFactory.getFactory().canCreateGLPbuffer()) {
unavailableExtension("Can not create pbuffer");
}
if (pbuffer != null) {
diff --git a/src/demos/proceduralTexturePhysics/Water.java b/src/demos/proceduralTexturePhysics/Water.java
index 404d012..701a10f 100644
--- a/src/demos/proceduralTexturePhysics/Water.java
+++ b/src/demos/proceduralTexturePhysics/Water.java
@@ -201,9 +201,7 @@ public class Water {
// it allows rendering a texture larger than our window.
GLCapabilities caps = new GLCapabilities();
caps.setDoubleBuffered(false);
- if (!GLDrawableFactory.getFactory().canCreateGLPbuffer(caps,
- initialMapDimensions[0],
- initialMapDimensions[1])) {
+ if (!GLDrawableFactory.getFactory().canCreateGLPbuffer()) {
throw new GLException("Pbuffers not supported with this graphics card");
}
pbuffer = GLDrawableFactory.getFactory().createGLPbuffer(caps,