mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 15:35:09 +00:00
AppletLoader Fix: set correct context classloader for the applet loaded by the AppletLoader. Credit to arielsan for finding the issue and supplying a fix/patch.
This commit is contained in:
parent
51ab4101b8
commit
f4f6401efd
1 changed files with 5 additions and 2 deletions
|
|
@ -774,7 +774,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
|||
// set lwjgl properties
|
||||
setLWJGLProperties();
|
||||
|
||||
// make applet switch on EDT as an AWT/Swing permission dialog could be called
|
||||
// make applet switch on the EDT as an AWT/Swing permission dialog could be called
|
||||
EventQueue.invokeAndWait(new Runnable() {
|
||||
public void run() {
|
||||
try {
|
||||
|
|
@ -1023,7 +1023,10 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
|||
percentage = 100;
|
||||
|
||||
debug_sleep(2000);
|
||||
|
||||
|
||||
// set correct context classloader for lwjgl applet
|
||||
Thread.currentThread().setContextClassLoader(classLoader);
|
||||
|
||||
Class appletClass = classLoader.loadClass(getParameter("al_main"));
|
||||
lwjglApplet = (Applet) appletClass.newInstance();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue