diff options
author | Kenneth Russel <[email protected]> | 2005-11-10 06:44:13 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-11-10 06:44:13 +0000 |
commit | c81609da7fa85e4a6b444cd3776c54228b4bdff4 (patch) | |
tree | efc479e2b4625e2344c85f6e4a0337316f3b2191 /make | |
parent | c3f4b1c7ccdd682f772fb0bdb67e3dd292ba9c06 (diff) |
Fixed Issue 180: Improve garbage generation
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@432 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make')
-rw-r--r-- | make/gl-impl-CustomJavaCode.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/make/gl-impl-CustomJavaCode.java b/make/gl-impl-CustomJavaCode.java index 5b4a3fa17..3d927d271 100644 --- a/make/gl-impl-CustomJavaCode.java +++ b/make/gl-impl-CustomJavaCode.java @@ -37,6 +37,7 @@ public Object getPlatformGLExtensions() { return _context.getPlatformGLExtensions(); } +private int[] bufTmp = new int[1]; private void checkBufferObject(String extension1, String extension2, boolean enabled, @@ -52,14 +53,13 @@ private void checkBufferObject(String extension1, return; throw new GLException("Required extensions not available to call this function"); } - int[] val = new int[1]; - glGetIntegerv(state, val, 0); + glGetIntegerv(state, bufTmp, 0); if (enabled) { - if (val[0] == 0) { + if (bufTmp[0] == 0) { throw new GLException(kind + " must be enabled to call this method"); } } else { - if (val[0] != 0) { + if (bufTmp[0] != 0) { throw new GLException(kind + " must be disabled to call this method"); } } |