mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
Don't throw exception on unknown enum before they are all added
This commit is contained in:
parent
3cdd9516f3
commit
00ef847c88
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue