aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/windows/WindowsOnscreenGLContext.java
diff options
context:
space:
mode:
authorKenneth Russel <kbrussel@alum.mit.edu>2005-02-23 22:42:27 +0000
committerKenneth Russel <kbrussel@alum.mit.edu>2005-02-23 22:42:27 +0000
commit275675c380de6b4583993998cafe29ef469a1a86 (patch)
treee299a0940ce8683ed397de05d69fede988dc34bc /src/net/java/games/jogl/impl/windows/WindowsOnscreenGLContext.java
parent5badb8802c2c4f884a81970321361b99aa23aca2 (diff)
Partial fix for Issue 114: GLCanvas canCreateOffscreenDrawable() function always returns true
Fixed the Windows implementation of this routine to check for the presence of the WGL_ARB_pbuffer and WGL_ARB_pixel_format extensions. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@238 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/impl/windows/WindowsOnscreenGLContext.java')
-rw-r--r--src/net/java/games/jogl/impl/windows/WindowsOnscreenGLContext.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsOnscreenGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsOnscreenGLContext.java
index 1838f62aa..de13be0a1 100644
--- a/src/net/java/games/jogl/impl/windows/WindowsOnscreenGLContext.java
+++ b/src/net/java/games/jogl/impl/windows/WindowsOnscreenGLContext.java
@@ -102,7 +102,7 @@ public class WindowsOnscreenGLContext extends WindowsGLContext {
}
public boolean canCreatePbufferContext() {
- return true;
+ return haveWGLARBPbuffer();
}
public synchronized GLContext createPbufferContext(GLCapabilities capabilities,