<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>295</bug_id>
          
          <creation_ts>2007-04-19 07:41:14 +0200</creation_ts>
          <short_desc>glCapabilities2AttribList() doesn&apos;t pair GLX_STEREO correctly</short_desc>
          <delta_ts>2010-03-24 07:50:28 +0100</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>242</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>311</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:50:28 +0100</bug_when>
    <thetext>


---- 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&apos;m not sure which version of JOGL you&apos;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.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>