diff options
author | Kenneth Russel <[email protected]> | 2005-09-25 23:36:12 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-09-25 23:36:12 +0000 |
commit | 654615cdb56fc28b8f215cbc248479b58025e579 (patch) | |
tree | 903ba1c94c1e3a43289c142888616e33af306fc3 /src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java | |
parent | 02510865a2ff5468f11df23afcba370789fc6372 (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/hwShadowmapsSimple/HWShadowmapsSimple.java')
-rw-r--r-- | src/demos/hwShadowmapsSimple/HWShadowmapsSimple.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |