<?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>129</bug_id>
          
          <creation_ts>2005-01-11 08:07:01 +0100</creation_ts>
          <short_desc>GLJPanel throws a GLException while GLCanvas works.</short_desc>
          <delta_ts>2010-03-24 07:47:16 +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>41</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>145</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:47:16 +0100</bug_when>
    <thetext>


---- Reported by snagy 2005-01-11 20:07:01 ----

Doing the following with a GLJPanel I get the GLException that can be found
below.  I actually thought it was a problem with my driver but using a GLCanvas
everything works fine.  I tried with jdk1.5.0,1.5.0_01, 1.4.2_05.
 
GLCapabilities capabilities = new GLCapabilities();
   JPanel panel = GLDrawableFactory.getFactory().createGLJPanel(capabilities);
   
   JFrame frame = new JFrame(&quot;OpenGL Test&quot;);
   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   
   frame.setSize(400,400);
   frame.add(panel);
   frame.setVisible(true);
 
-----------------------------------------------------------------------
 
Exception in thread &quot;main&quot; net.java.games.jogl.GLException: Unable to set pixel
format
 at net.java.games.jogl.impl.windows.WindowsGLContext.choosePixelFormatAndCr
eateContext(WindowsGLContext.java:493)
 at net.java.games.jogl.impl.windows.WindowsOffscreenGLContext.create(Window
sOffscreenGLContext.java:181)
 at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLC
ontext.java:135)
 at net.java.games.jogl.impl.windows.WindowsOffscreenGLContext.makeCurrent(W
indowsOffscreenGLContext.java:12Cool
 at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:250)
 at net.java.games.jogl.GLJPanel.reshape(GLJPanel.java:131)
 at java.awt.Component.setBounds(Component.java:1847)
 at java.awt.BorderLayout.layoutContainer(BorderLayout.java:809)
 at java.awt.Container.layout(Container.java:1401)
 at java.awt.Container.doLayout(Container.java:1390)
 at java.awt.Container.validateTree(Container.java:1473)
 at java.awt.Container.validateTree(Container.java:1480)
 at java.awt.Container.validateTree(Container.java:1480)
 at java.awt.Container.validateTree(Container.java:1480)
 at java.awt.Container.validate(Container.java:144Cool
 at java.awt.Window.show(Window.java:507)
 at java.awt.Component.show(Component.java:1300)
 at java.awt.Component.setVisible(Component.java:1253)



---- Additional Comments From kbr 2005-01-18 16:08:30 ----

A workaround appears to be to call

setDoubleBuffered(false)

on the GLCapabilities object passed to GLDrawableFactory.createGLJPanel(). This
should be done automatically by the JOGL library if necessary.




---- Additional Comments From kbr 2005-01-31 01:39:05 ----

We&apos;ve added a workaround which disables the double-buffering flag in the
GLCapabilities for offscreen surfaces in the fix for Issue 41, so I&apos;m marking
this  as a duplicate of that bug. The fix will be present in JOGL 1.1 b08.
Please reopen this bug or open a new bug if problems persist.


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



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

This bug was previously known as _bug_ 129 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=129
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>