mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
Moved the current BufferObjectInstance into ContextCapabilities to make it ThreadLocal
This commit is contained in:
parent
e5a0e67f6d
commit
412dfc7462
4 changed files with 12 additions and 30 deletions
|
|
@ -191,7 +191,6 @@ public final class GLContext {
|
|||
if (context == null) {
|
||||
ContextCapabilities.unloadAllStubs();
|
||||
setCapabilities(null);
|
||||
BufferObjectTracker.setCurrent(null);
|
||||
if (did_auto_load)
|
||||
unloadOpenGLLibrary();
|
||||
return;
|
||||
|
|
@ -213,7 +212,6 @@ public final class GLContext {
|
|||
capability_cache.put(context, getCapabilities());
|
||||
} else
|
||||
setCapabilities(capabilities);
|
||||
BufferObjectTracker.setCurrent(context);
|
||||
} catch (LWJGLException e) {
|
||||
if (did_auto_load)
|
||||
unloadOpenGLLibrary();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue