mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
AppletLoader: create MediaTracker before requesting image in an attempt to fix a logo loading issue.
This commit is contained in:
parent
8bc92abf82
commit
67c3452bb4
1 changed files with 3 additions and 2 deletions
|
|
@ -2001,11 +2001,12 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
|||
*/
|
||||
public Image getImage(URL url) {
|
||||
try {
|
||||
MediaTracker tracker = new MediaTracker(this);
|
||||
|
||||
Image image = super.getImage(url);
|
||||
|
||||
// wait for image to load
|
||||
MediaTracker tracker = new MediaTracker(this);
|
||||
tracker.addImage(image, 0);
|
||||
tracker.addImage(image, 0);
|
||||
tracker.waitForAll();
|
||||
|
||||
// if no errors return image
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue