mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 07:24:20 +00:00
Replaced asserts with proper runtime exceptions
This commit is contained in:
parent
afb8491cfa
commit
c093f3ace1
11 changed files with 1058 additions and 1013 deletions
|
|
@ -87,7 +87,7 @@ public final class GL15 {
|
|||
VBOTracker.getVBOArrayStack().setState(buffer);
|
||||
break;
|
||||
default:
|
||||
assert false: "Unsupported VBO target " + target;
|
||||
throw new IllegalArgumentException("Unsupported VBO target " + target);
|
||||
}
|
||||
nglBindBuffer(target, buffer);
|
||||
}
|
||||
|
|
@ -296,4 +296,4 @@ public final class GL15 {
|
|||
int paramsOffset);
|
||||
// ---------------------------
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue