mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +00:00
Make sure the GL11 native stubs are unloaded too.
Throw exception when wglMakeCurrent fails
This commit is contained in:
parent
15934fd6e7
commit
8585d8b2a5
3 changed files with 10 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue