Fixed window icons error on Wayland
This commit is contained in:
parent
ec17eb7065
commit
dececb4589
@ -95,6 +95,11 @@ class LWJGLInitializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void createWindowIcons() {
|
private static void createWindowIcons() {
|
||||||
|
if (glfwGetVersionString().toLowerCase().contains("wayland")) {
|
||||||
|
// glfwSetWindowIcon is not supported on Wayland
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
final String prefix = "assets/icons/";
|
final String prefix = "assets/icons/";
|
||||||
|
|
||||||
String[] sizes = ResourceManager.getResource(prefix + "logoSizes.txt").readAsString().split(" ");
|
String[] sizes = ResourceManager.getResource(prefix + "logoSizes.txt").readAsString().split(" ");
|
||||||
|
Reference in New Issue
Block a user