Don't throw exception on unknown enum before they are all added

This commit is contained in:
Elias Naur 2004-02-05 16:38:29 +00:00
parent 3cdd9516f3
commit 00ef847c88
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ public class BufferChecks {
scratchInt.value = enum; scratchInt.value = enum;
Util.IntValue ret = (Util.IntValue) getMap.get(scratchInt); Util.IntValue ret = (Util.IntValue) getMap.get(scratchInt);
if (ret == null) { if (ret == null) {
throw new OpenGLException("Unknown enum glGet* "+enum); // TODO: add missing enums before re-enabling this anal check
//throw new OpenGLException("Unknown enum glGet* "+enum);
} else if (buf.remaining() < ret.value) { } else if (buf.remaining() < ret.value) {
throw new BufferOverflowException(); throw new BufferOverflowException();
} }