<?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>114</bug_id>
          
          <creation_ts>2004-10-20 05:48:25 +0200</creation_ts>
          <short_desc>GLCanvas canCreateOffscreenDrawable() function always returns true</short_desc>
          <delta_ts>2010-03-24 07:54:59 +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>130</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:46:59 +0100</bug_when>
    <thetext>


---- Reported by johnpreston 2004-10-20 17:48:25 ----

The GLCanvas.canCreateOffscreenDrawable() function returns true even when
pbuffer support is not available as with Mesa Library drivers.

On a Linux Fedora Core 2 box runnign Xorg with using the &apos;ati&apos; driver which uses
Mesa libraries, GL vendor=[Mesa project: www.mesa3d.org], GL version=[1.2 (1.5
Mesa 6.1)], GL renderer=[Mesa GLX Indirect], pbuffer support is not available.
Yet canCreateOffscreenDrawable() returns true.

I need this to return false so I can implement a Java2D workaround for off
screen buffering on hardware that does not yet support pbuffers.



---- Additional Comments From kbr 2005-02-23 14:41:06 ----

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



---- Additional Comments From kbr 2005-02-23 14:45:21 ----

The Windows port of JOGL has been fixed to return true for
GLCanvas.canCreateOffscreenDrawable() only if the WGL_ARB_pbuffer and
WGL_ARB_pixel_format extensions are available.

The X11 port already checks to see whether GLX 1.3 or later is available when
deciding if pbuffers are supported. As far as I understand it, any GLX
implementation claiming to support 1.3 should support pbuffer creation.




---- Additional Comments From kbr 2005-04-30 07:21:53 ----

Although the code in question (on the X11 side) hasn&apos;t changed, I&apos;m marking this
as fixed because (a) the Windows code has been fixed and (b) I believe the JOGL
code is as correct as it can be without adding additional error handling for
buggy GLX implementations. The GLJPanel works around the lack of pbuffer support
at a higher level by catching GLException during pbuffer creation and falling
back to using pixmap rendering. The application here could do something similar.




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

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

Unknown bug field &quot;has_duplicates&quot; encountered while moving bug
   &lt;has_duplicates&gt;
     &lt;bug_id&gt;113&lt;/bug_id&gt;
     &lt;who&gt;kbr&lt;/who&gt;
     &lt;when&gt;2005-02-23 14:41:06&lt;/when&gt;
&lt;/has_duplicates&gt;

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:54:59 +0100</bug_when>
    <thetext>*** Bug 113 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>