diff options
author | Sven Gothel <[email protected]> | 2013-09-24 20:15:51 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-24 20:15:51 +0200 |
commit | 2f09d266f75dfb4ab0d4504dd0a7699757bc40b3 (patch) | |
tree | c9f8cbe37b88663a6493e74568031c10c210e07f /src | |
parent | 51ae910b9ad4f3691c2b91a912b94701d0ef98ac (diff) |
TileRendererBase: Remove redundant reshape propagation of atached GLEL, call pre/post reshape in it's display method instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java | 15 |
1 files changed, 3 insertions, 12 deletions
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<aSz; i++) { - listeners[i].reshape(drawable, x, y, width, height); - } - if( null != glEventListenerPost ) { - glEventListenerPost.reshape(drawable, x, y, width, height); - } - } + public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { } }; }
\ No newline at end of file |