mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
Added support for OpenGL 3.3 and OpenGL 4.0.
This commit is contained in:
parent
0eed407ef8
commit
c3d6d43d2a
36 changed files with 2217 additions and 36 deletions
|
|
@ -114,6 +114,18 @@ class GLChecks {
|
|||
throw new OpenGLException("Cannot use offsets when Element Array Buffer Object is disabled");
|
||||
}
|
||||
|
||||
/** Helper method to ensure that array buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */
|
||||
static void ensureIndirectBOdisabled(ContextCapabilities caps) {
|
||||
if ( StateTracker.getReferencesStack(caps).getReferences().indirectBuffer != 0 )
|
||||
throw new OpenGLException("Cannot use Buffers when Draw Indirect Object is enabled");
|
||||
}
|
||||
|
||||
/** Helper method to ensure that array buffer objects are enabled. If they are disabled, we'll throw an OpenGLException */
|
||||
static void ensureIndirectBOenabled(ContextCapabilities caps) {
|
||||
if ( StateTracker.getReferencesStack(caps).getReferences().indirectBuffer == 0 )
|
||||
throw new OpenGLException("Cannot use offsets when Draw Indirect Object is disabled");
|
||||
}
|
||||
|
||||
/** Helper method to ensure that pixel pack buffer objects are disabled. If they are enabled, we'll throw an OpenGLException */
|
||||
static void ensurePackPBOdisabled(ContextCapabilities caps) {
|
||||
if ( StateTracker.getReferencesStack(caps).getReferences().pixelPackBuffer != 0 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue