aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-05-09 06:06:55 +0000
committerKenneth Russel <[email protected]>2006-05-09 06:06:55 +0000
commitdced83b3e6e2713c36adf5f7d88c210d0a12d0e5 (patch)
tree3aec0e8af6651d9229f1102df2a0205f5b1fa820 /src
parentacdfb6272b1b578f20339c948e30964462598b85 (diff)
Fixed Issue 221: Fixing stereo capability in WindowsGLDrawable
Applied patch from user eteq to fix stereo support on Windows platforms. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@758 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rw-r--r--src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java b/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java
index 8b8df0926..e5b8b6424 100644
--- a/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java
+++ b/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java
@@ -301,6 +301,9 @@ public abstract class WindowsGLDrawable extends GLDrawableImpl {
} else {
pfdFlags |= WGL.PFD_DRAW_TO_BITMAP;
}
+ if (caps.getStereo()) {
+ pfdFlags |= WGL.PFD_STEREO;
+ }
pfd.dwFlags(pfdFlags);
pfd.iPixelType((byte) WGL.PFD_TYPE_RGBA);
pfd.cColorBits((byte) colorDepth);