Use WeakHashMap in the static mapping from contexts to vbo trackers in VBOTracker.java.

This commit is contained in:
Elias Naur 2004-07-24 16:29:15 +00:00
parent 1187d0e3e8
commit 20537ab57e
3 changed files with 3 additions and 15 deletions

View file

@ -252,7 +252,7 @@ public final class GLContext {
GL11.initNativeStubs();
loadStubs();
currentContext = new WeakReference(context);
VBOTracker.setCurrent(currentContext);
VBOTracker.setCurrent(context);
} catch (LWJGLException e) {
if (did_auto_load)
unloadOpenGLLibrary();