[FIX] Wayland support

This commit is contained in:
Gravita 2024-01-03 13:17:59 +07:00
parent 449798d52b
commit 90f6d002d1

View file

@ -177,7 +177,7 @@ public void start(boolean pipeOutput) throws IOException, InterruptedException {
var env = processBuilder.environment(); var env = processBuilder.environment();
// https://github.com/Admicos/minecraft-wayland/issues/55 // https://github.com/Admicos/minecraft-wayland/issues/55
env.put("__GL_THREADED_OPTIMIZATIONS", "0"); env.put("__GL_THREADED_OPTIMIZATIONS", "0");
if(params.lwjglGlfwWayland) { if(params.lwjglGlfwWayland && !params.profile.hasFlag(ClientProfile.CompatibilityFlags.WAYLAND_USE_CUSTOM_GLFW)) {
env.remove("DISPLAY"); // No X11 env.remove("DISPLAY"); // No X11
} }
} }