Fixed window icons error on Wayland

This commit is contained in:
OLEGSHA 2021-12-26 20:36:32 +03:00
parent ec17eb7065
commit dececb4589
Signed by: OLEGSHA
GPG Key ID: E57A4B08D64AFF7A

View File

@ -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(" ");