summaryrefslogtreecommitdiffstats
path: root/src/jogl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-01-24 19:30:26 +0100
committerSven Gothel <[email protected]>2014-01-24 19:30:26 +0100
commitbf99c8637f94695a802ff80eb4f630e7c4a4f136 (patch)
treecfa43fb48d24f9a7f2f5182d272383996dcb85e2 /src/jogl
parenteee9c2cbaf5984e7036a790feb3b8db9f63096f0 (diff)
GLRendererQuirks.addQuirks(..): Fix array bounds check
Diffstat (limited to 'src/jogl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java b/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java
index 0ac0c0f03..57c5446f1 100644
--- a/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java
+++ b/src/jogl/classes/com/jogamp/opengl/GLRendererQuirks.java
@@ -398,7 +398,7 @@ public class GLRendererQuirks {
*/
public final void addQuirks(int[] quirks, int offset, int len) throws IllegalArgumentException {
int bitmask = 0;
- if( !( 0 <= offset + len && offset + len < quirks.length ) ) {
+ if( !( 0 <= offset + len && offset + len <= quirks.length ) ) {
throw new IllegalArgumentException("offset and len out of bounds: offset "+offset+", len "+len+", array-len "+quirks.length);
}
for(int i=offset; i<offset+len; i++) {