---- Reported by email@example.com 2010-03-22 12:46:54 -0400 ----
---- Reported by firstname.lastname@example.org 2009-08-31 19:32:54 ----
Hi, this is similar to the the TextureData bug I think. If I innocently
try to grab the fontRenderContext for some TextRenderer like so
frc = textRenderer.getFontRenderContext();
then I get this exception:
javax.media.opengl.GLException: No OpenGL context current on this
The actual issue occurs at line 617 of
com.sun.opengl.util.awt.TextureRenderer.init(int w, int h), which is:
GL2 gl = GLContext.getCurrentGL().getGL2();
Yet the GL2 variable "gl" is not actually used in the method anywhere!
There seem to be a number of cases where the getCurrentGL() is called
unnecessarily which is forcing everything to be processed in the
(ps, sorry i posted this twice-- once as an email, and then realized there was an issue tracker)
--- Bug imported by email@example.com 2010-03-22 12:46 EDT ---
This bug was previously known as _bug_ 998 at http://kenai.com/bugzilla/show_bug.cgi?id=998
The original reporter of this bug does not have
an account here. Reassigning to the person who moved
it here: firstname.lastname@example.org.
Previous reporter was email@example.com.
--- Bug imported by firstname.lastname@example.org 2010-03-24 08:04 EDT ---
This bug was previously known as _bug_ 11 at http://jogamp.org/bugzilla/show_bug.cgi?id=11
Even though the actual GL context is not being used,
it's GLProfile is being passed to AWTTextureData to determine
the appropriate texture format.
The GLProfile could be passed as an argument and no current
GLContext would be required, however this would force an API
change which I refrain for this AWT text renderer implementation.