diff options
author | Harvey Harrison <[email protected]> | 2013-10-17 23:39:11 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2013-10-17 23:39:11 -0700 |
commit | 5ef943ff0669e9bc6ea367703b12d89cf776f6ca (patch) | |
tree | 23b85dc8a3d3efb6747fb391e4648e4955712e0a /src/jogl/classes/com/jogamp | |
parent | 85f1672da9cff456d24c75299fb09aa4a060bd4c (diff) |
jogl: fix typo in RandomTileRenderer, range chack was for tY, not tX again
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r-- | src/jogl/classes/com/jogamp/opengl/util/RandomTileRenderer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/RandomTileRenderer.java b/src/jogl/classes/com/jogamp/opengl/util/RandomTileRenderer.java index b00866dd9..1c87dad4e 100644 --- a/src/jogl/classes/com/jogamp/opengl/util/RandomTileRenderer.java +++ b/src/jogl/classes/com/jogamp/opengl/util/RandomTileRenderer.java @@ -76,7 +76,7 @@ public class RandomTileRenderer extends TileRendererBase { * @throws IllegalArgumentException is tile x/y are < 0 or tile size is <= 0x0 */ public void setTileRect(int tX, int tY, int tWidth, int tHeight) throws IllegalStateException, IllegalArgumentException { - if( 0 > tX || 0 > tX ) { + if( 0 > tX || 0 > tY ) { throw new IllegalArgumentException("Tile pos must be >= 0/0"); } if( 0 >= tWidth || 0 >= tHeight ) { |