<?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>380</bug_id>
          
          <creation_ts>2009-08-28 12:01:00 +0200</creation_ts>
          <short_desc>AWTTextureIO.newTextureData() should not require a current context</short_desc>
          <delta_ts>2010-03-24 09:16:52 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>awt</component>
          <version>1</version>
          <rep_platform>pc_all</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>378</dup_id>
          
          <bug_file_loc>http://www.javagaming.org/index.php?topic=21001.0</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P1</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Bien">bienator</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>bienator</cc>
          
          <cf_type>---</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>404</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 08:04:12 +0100</bug_when>
    <thetext>


---- Reported by sgothel@jausoft.com 2010-03-22 12:25:21 -0400 ----




---- Reported by mbien@fh-landshut.de 2009-08-28 00:01:57 ----

It is currently not possible to create TextureData outside the gl thread.

                public static void main(String[] args) throws MalformedURLException, IOException {
                BufferedImage image = ImageIO.read(new URL(&quot;http://www.google.com/intl/en_ALL/images/logo.gif&quot;));
                AWTTextureIO.newTextureData(image, false);
                }

                throws

                Exception in thread &quot;main&quot; javax.media.opengl.GLException: No OpenGL context current on this thread
                at javax.media.opengl.GLContext.getCurrentGL(GLContext.java:159)
                at com.sun.opengl.util.texture.awt.AWTTextureData.createFromImage(AWTTextureData.java:173)
                at com.sun.opengl.util.texture.awt.AWTTextureData.&lt;init&gt;(AWTTextureData.java:102)
                at com.sun.opengl.util.texture.awt.AWTTextureIO.newTextureDataImpl(AWTTextureIO.java:117)
                at com.sun.opengl.util.texture.awt.AWTTextureIO.newTextureData(AWTTextureIO.java:59)
            at org.yourorghere.SimpleJOGL2.main(SimpleJOGL2.java:35)



--- Bug imported by sgothel@jausoft.com 2010-03-22 12:25 EDT  ---

This bug was previously known as _bug_ 975 at http://kenai.com/bugzilla/show_bug.cgi?id=975

Unknown platform PC. Setting to default platform &quot;&quot;.
Unknown operating system All. Setting to default OS &quot;&quot;.
Actual time not defined. Setting to 0.0





---- Additional Comments From sgothel@jausoft.com 2010-03-22 12:49:45 -0400 ----

*** http://jogamp.org/bugzilla/show_bug.cgi?id=4 has been marked as a duplicate of this bug. ***



---- Additional Comments From sgothel@jausoft.com 2010-03-22 12:50:23 -0400 ----

*** http://jogamp.org/bugzilla/show_bug.cgi?id=5 has been marked as a duplicate of this bug. ***



--- Bug imported by sgothel@jausoft.com 2010-03-24 08:04 EDT  ---

This bug was previously known as _bug_ 3 at http://jogamp.org/bugzilla/show_bug.cgi?id=3

Unknown platform unknown. Setting to default platform &quot;&quot;.
Unknown operating system unknown. Setting to default OS &quot;&quot;.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>414</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 08:12:26 +0100</bug_when>
    <thetext>fix platform and os.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 09:16:52 +0100</bug_when>
    <thetext>duplicate ..

*** This bug has been marked as a duplicate of bug 378 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>