From 2f09d266f75dfb4ab0d4504dd0a7699757bc40b3 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 24 Sep 2013 20:15:51 +0200 Subject: TileRendererBase: Remove redundant reshape propagation of atached GLEL, call pre/post reshape in it's display method instead. --- .../classes/com/jogamp/opengl/util/TileRendererBase.java | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java b/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java index 133c3866f..74e1df316 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java +++ b/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java @@ -493,6 +493,7 @@ public abstract class TileRendererBase { @Override public void display(GLAutoDrawable drawable) { if( null != glEventListenerPre ) { + glEventListenerPre.reshape(drawable, 0, 0, currentTileWidth, currentTileHeight); glEventListenerPre.display(drawable); } final GL gl = drawable.getGL(); @@ -514,21 +515,11 @@ public abstract class TileRendererBase { } if( null != glEventListenerPost ) { + glEventListenerPost.reshape(drawable, 0, 0, currentTileWidth, currentTileHeight); glEventListenerPost.display(drawable); } } @Override - public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { - if( null != glEventListenerPre ) { - glEventListenerPre.reshape(drawable, x, y, width, height); - } - final int aSz = listenersInit.length; - for(int i=0; i