summaryrefslogtreecommitdiffstats
path: root/src/demos/proceduralTexturePhysics/Water.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-09-25 23:36:12 +0000
committerKenneth Russel <[email protected]>2005-09-25 23:36:12 +0000
commit654615cdb56fc28b8f215cbc248479b58025e579 (patch)
tree903ba1c94c1e3a43289c142888616e33af306fc3 /src/demos/proceduralTexturePhysics/Water.java
parent02510865a2ff5468f11df23afcba370789fc6372 (diff)
Changed GLDrawableFactory.canCreateGLPbuffer(GLCapabilities, int, int)
to take no arguments because in general it is not possible to answer that question without actually attempting to create the pbuffer. Instead this method is now a simple capability check of whether the current graphics card supports pbuffers. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@136 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/proceduralTexturePhysics/Water.java')
-rw-r--r--src/demos/proceduralTexturePhysics/Water.java4
1 files changed, 1 insertions, 3 deletions
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,