Bug 811 - The legacy text renderer doesn't support GL3
Summary: The legacy text renderer doesn't support GL3
Alias: None
Product: Jogl
Classification: JogAmp
Component: util (show other bugs)
Version: 2.4.0
Hardware: All all
: P5 enhancement
Assignee: Sven Gothel
Depends on:
Reported: 2013-08-08 13:48 CEST by Julien Gouesse
Modified: 2017-01-17 15:24 CET (History)
2 users (show)

See Also:
SCM Refs:
Workaround: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Julien Gouesse 2013-08-08 13:48:11 CEST
The legacy renderer doesn't work with GL3 as you can see below:
Exception in thread "main-FPSAWTAnimator-Timer0" java.lang.RuntimeException: javax.media.opengl.GLException: Not a GL2 implementation
Caused by: javax.media.opengl.GLException: Not a GL2 implementation
        at javax.media.opengl.DebugGL3.getGL2(DebugGL3.java:86)
        at com.jogamp.opengl.util.awt.TextRenderer.beginRendering(TextRenderer.java:650)
        at com.jogamp.opengl.util.awt.TextRenderer.beginRendering(TextRenderer.java:405)
        at com.jogamp.opengl.util.awt.TextRenderer.beginRendering(TextRenderer.java:384) 

A contributor provided a patch to improve this renderer but it's not clean, there are some code duplications, it doesn't use our shader utilities, it requires some work:

Of course, this request for enhancement is not in high priority as:
- the new text renderer always supports the programmable pipeline
- several high level engines already have their own mechanisms to display text
Comment 1 Christopher Bruns 2014-10-28 19:14:52 CET
@Julien Gouesse: What is the "new text renderer" you speak of? Because I am experiencing this same trouble with "Not a GL2 Implementation" using the class com.jogamp.opengl.util.awt.TextRenderer. Is there another text rendering API I could be using with a GL3 context?
Comment 2 Julien Gouesse 2014-10-28 22:08:11 CET
Look at com.jogamp.graph.