Skip to content

Commit

Permalink
fix(lwjgl3): Reset missingAddresses on ANGLE after GLES class init
Browse files Browse the repository at this point in the history
  • Loading branch information
Berstanio committed Oct 6, 2023
1 parent 99c1090 commit ada317d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import com.badlogic.gdx.utils.ObjectMap;
import com.badlogic.gdx.utils.SharedLibraryLoader;
import org.lwjgl.system.Configuration;
import org.lwjgl.system.ThreadLocalUtil;

public class Lwjgl3Application implements Lwjgl3ApplicationBase {
private final Lwjgl3ApplicationConfiguration config;
Expand Down Expand Up @@ -562,6 +563,8 @@ static long createGlfwWindow (Lwjgl3ApplicationConfiguration config, long shared
try {
Class gles = Class.forName("org.lwjgl.opengles.GLES");
gles.getMethod("createCapabilities").invoke(gles);
// TODO: 06.10.23 Remove once https://github.com/LWJGL/lwjgl3/issues/931 is fixed
ThreadLocalUtil.setFunctionMissingAddresses(0);
} catch (Throwable e) {
throw new GdxRuntimeException("Couldn't initialize GLES", e);
}
Expand Down

0 comments on commit ada317d

Please sign in to comment.