Make sure the GL11 native stubs are unloaded too.

Throw exception when wglMakeCurrent fails
This commit is contained in:
Elias Naur 2004-07-04 08:39:09 +00:00
parent 15934fd6e7
commit 8585d8b2a5
3 changed files with 10 additions and 4 deletions

View file

@ -330,8 +330,11 @@ public final class GLContext {
private static void unloadStubs() {
Iterator exts_it = exts.keySet().iterator();
while (exts_it.hasNext())
resetNativeStubs((Class)exts_it.next());
while (exts_it.hasNext()) {
Class ext_class = (Class)exts_it.next();
resetNativeStubs(ext_class);
}
resetNativeStubs(org.lwjgl.opengl.GL11.class);
}
/**