mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-18 19:24:41 +01:00
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;
|
||||
Util.IntValue ret = (Util.IntValue) getMap.get(scratchInt);
|
||||
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) {
|
||||
throw new BufferOverflowException();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue