Bug 295 - glCapabilities2AttribList() doesn't pair GLX_STEREO correctly
Summary: glCapabilities2AttribList() doesn't pair GLX_STEREO correctly
Status: VERIFIED DUPLICATE of bug 242
Alias: None
Product: Jogl
Classification: JogAmp
Component: core (show other bugs)
Version: 1
Hardware: All all
: P3 normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2007-04-19 07:41 CEST by Sven Gothel
Modified: 2010-03-24 07:50 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments

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


---- Reported by rugrat 2007-04-19 19:41:14 ----

In classes/com/sun/opengl/impl/x11/X11GLDrawableFactory.java::
glCapabilities2AttribList() around line 370:

    if (caps.getStereo()) {
      res[idx++] = GLX.GLX_STEREO;
    }

According to the glXChooseFBConfig() man page, GLX_STEREO
must be followed by a boolean.  If stereo is enabled, the
attribute list will get corrupted.



---- Additional Comments From kbr 2007-04-19 20:30:00 ----

I'm not sure which version of JOGL you're looking at but as far as I can tell
this was fixed even before the 1.0.0 release of JSR-231.

Note that the current logic is a little tricky, because the output of
glCapabilities2AttribList is used both by glXChooseVisual (for on-screen OpenGL
drawables) and glXChooseFBConfig. These APIs treat the GLX_STEREO and
GLX_DOUBLEBUFFER flags differently.


*** This issue has been marked as a duplicate of 242 ***



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

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

The original assignee of this bug does not have
   an account here. Reassigning to the default assignee
   for the component, sgothel@jausoft.com.
   Previous assignee was kbr.