Bug 221 - Fixing stereo capability in WindowsGLDrawable
Summary: Fixing stereo capability in WindowsGLDrawable
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All windows
: P3 normal
Assignee: Sven Gothel
Depends on:
Reported: 2006-05-08 09:40 CEST by Sven Gothel
Modified: 2015-09-27 03:09 CEST (History)
0 users

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 07:48:51 CET

---- Reported by eteq 2006-05-08 21:40:47 ----

For the last couple weeks I've been trying to figure out why stereo mode doesn't
work on a GLCanvas under Windows XP... Turns out the glCapabilities2pfd method
in WindowsGLDrawable didn't transfer stereo mode to the PIXELFORMATDESCRIPTOR.
Adding the following code at line 304 of WindowsGLDrawable.java fixes the
problem, and stereo now works for me on a GLCanvas.

if (caps.getStereo()) {
        pfdFlags |= WGL.PFD_STEREO;

---- Additional Comments From kbr 2006-05-08 23:08:29 ----

Thanks very much for the patch. It's embarrassing this has been broken this
long. Your patch has been applied, will be present in the nightly builds dated
5/9 and later, and will be present in the next JSR-231 build (probably beta 5).

--- Bug imported by sgothel@jausoft.com 2010-03-24 07:48 EDT  ---

This bug was previously known as _bug_ 221 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=221