From 8297ef88b927e07b41760ab3e9de05bc49fd4695 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 5 Apr 2011 01:44:07 +0200 Subject: Fix: shaderProgram.program(); glBindAttribLocation() call; dispose/disposeImpl sequence; Use shaderProgram.program() instead of shaderProgram.id() - the id() is just a unique sequence name. Call glBindAttribLocation() after program object init and before linkage. Chain call disposeImpl() properly to fix destruction sequence: TextRendererImpl01 -> TextRenderer -> GlyphString -> Region RegionRendererImpl01 -> RegionRenderer -> Region --- src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java') diff --git a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java index c1fec10b8..c6e03cad6 100644 --- a/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java +++ b/src/jogl/classes/com/jogamp/graph/curve/opengl/RegionRenderer.java @@ -54,6 +54,11 @@ public abstract class RegionRenderer extends Renderer { regions.clear(); } + @Override + protected void disposeImpl(GL2ES2 gl) { + flushCache(); + } + /** Create an ogl {@link Region} defining this {@link OutlineShape} * @param sharpness parameter for Region generation * @return the resulting Region. -- cgit v1.2.3