From dced83b3e6e2713c36adf5f7d88c210d0a12d0e5 Mon Sep 17 00:00:00 2001
From: Kenneth Russel <kbrussel@alum.mit.edu>
Date: Tue, 9 May 2006 06:06:55 +0000
Subject: 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
---
 src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'src/classes/com/sun/opengl/impl/windows')

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);
-- 
cgit v1.2.3