diff options
author | Sven Gothel <[email protected]> | 2013-09-28 04:08:59 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-09-28 04:08:59 +0200 |
commit | 67200852b972f244ecc19d0c54b2f8d8080b0824 (patch) | |
tree | 5ede5791eb0b3c77925b403bc3979769e5a84d17 /src/jogl/classes/com | |
parent | fe284b515d984198fdbe702837809f181625a457 (diff) |
Fix TileRenderer regression of commit c8abb9d2c9a8c92f0c5c42aba13e3e80c69739dc: Test isSetup() _after_ running glEventListenerPre.
glEventListenerPre may be utilized to setup the TileRenderer.
Diffstat (limited to 'src/jogl/classes/com')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java b/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java index f00e59347..f15c79f68 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java +++ b/src/jogl/classes/com/jogamp/opengl/util/TileRendererBase.java @@ -584,16 +584,16 @@ public abstract class TileRendererBase { } @Override public void display(GLAutoDrawable drawable) { + if( null != glEventListenerPre ) { + glEventListenerPre.reshape(drawable, 0, 0, currentTileWidth, currentTileHeight); + glEventListenerPre.display(drawable); + } if( !isSetup() ) { if( DEBUG ) { System.err.println("TileRenderer.glel.display: !setup: "+TileRendererBase.this); } return; } - if( null != glEventListenerPre ) { - glEventListenerPre.reshape(drawable, 0, 0, currentTileWidth, currentTileHeight); - glEventListenerPre.display(drawable); - } final GL gl = drawable.getGL(); beginTile(gl); |