Bug 1162 - Using TextRegionUtil (RegionRenderer and RenderState) with user GL code
Summary: Using TextRegionUtil (RegionRenderer and RenderState) with user GL code
Status: UNCONFIRMED
Alias: None
Product: Jogl
Classification: JogAmp
Component: graph (show other bugs)
Version: 2.4.0
Hardware: All all
: --- normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2015-06-11 17:36 CEST by Lili
Modified: 2015-09-27 04:06 CEST (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lili 2015-06-11 17:36:11 CEST
Unable to render both text and my own shapes (using my own shaders).
Previous solution of using
gl.glUseProgram(shaderState.shaderProgram().program())
  // text rendering
  .......
gl.glUseProgram(myOwnProgram)
  // my stuff
  ......

doesn't work any more.

Instead I needed to set 
 RenderState.setShaderProgram(final GL2ES2 gl, final ShaderProgram someShProg) {..}