<?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>242</bug_id>
          
          <creation_ts>2006-08-14 10:18:07 +0200</creation_ts>
          <short_desc>Unable to select single-buffered visual</short_desc>
          <delta_ts>2010-03-24 07:49:30 +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>FIXED</resolution>
          
          
          <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>258</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:49:30 +0100</bug_when>
    <thetext>


---- Reported by kcr 2006-08-14 10:18:07 ----

There is a bug in the X11GLDrawableFactory.glCapabilities2AttribList method that
prevents an app from selecting a single-buffered visual on X11 platforms. That
method treats GLX_DOUBLEBUFFER as if it were an attribute that takes a boolean
parameter, which is incorrect for glXChooseVisual. The GLX_DOUBLEBUFFER
attribute takes no parameter, rather its presence indicates that a double
buffered visual should be selected. This bug causes two problems. First, if a
single-buffered visual is requested, the request will not be honored. Second,
the &quot;false&quot; value will be interpreted as &quot;None&quot; causing all subsequent
attributes to be ignored.



---- Additional Comments From kcr 2006-08-14 10:21:22 ----

Btw, you need to be careful when fixing this bug if the output of this method is
ever used by glXFBConfig, which *does* treat GLX_DOUBLEBUFFER as a boolean
attribute that takes a parameter.




---- Additional Comments From kcr 2006-08-14 10:25:00 ----

One more thing. The GLX_STEREO attribute is being set correctly for
glXChooseVisual and, as such, is currently incorrect when used by glXFBConfig.
In other words, it has the opposite problem of GLX_DOUBLEBUFFER.




---- Additional Comments From kbr 2006-08-14 11:43:53 ----

Fixed GLX_DOUBLEBUFFER and GLX_STEREO specifications for both
on-screen and pbuffer visuals as per suggestion.




---- Additional Comments From kbr 2007-04-19 20:29:59 ----

*** Issue 295 has been marked as a duplicate of this issue. ***



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

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

Unknown bug field &quot;has_duplicates&quot; encountered while moving bug
   &lt;has_duplicates&gt;
     &lt;bug_id&gt;295&lt;/bug_id&gt;
     &lt;who&gt;kbr&lt;/who&gt;
     &lt;when&gt;2007-04-19 20:30:00&lt;/when&gt;
&lt;/has_duplicates&gt;

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>