Bug 380 - AWTTextureIO.newTextureData() should not require a current context
Summary: AWTTextureIO.newTextureData() should not require a current context
Status: VERIFIED DUPLICATE of bug 378
Alias: None
Product: Jogl
Classification: JogAmp
Component: awt (show other bugs)
Version: 1
Hardware: pc_all all
: P1 enhancement
Assignee: Sven Gothel
URL: http://www.javagaming.org/index.php?t...
Depends on:
Blocks:
 
Reported: 2009-08-28 12:01 CEST by Michael Bien
Modified: 2010-03-24 09:16 CET (History)
1 user (show)

See Also:
Type: ---
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Gothel 2010-03-24 08:04:12 CET


---- 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("http://www.google.com/intl/en_ALL/images/logo.gif"));
                AWTTextureIO.newTextureData(image, false);
                }

                throws

                Exception in thread "main" 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.<init>(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 "".
Unknown operating system All. Setting to default OS "".
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 "".
Unknown operating system unknown. Setting to default OS "".

Comment 1 Sven Gothel 2010-03-24 08:12:26 CET
fix platform and os.
Comment 2 Sven Gothel 2010-03-24 09:16:52 CET
duplicate ..

*** This bug has been marked as a duplicate of bug 378 ***