Don't throw exception on unknown enum before they are all added
This commit is contained in:
parent
3cdd9516f3
commit
00ef847c88
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue