2
0
Эх сурвалжийг харах

Backends: GLFW: fix ImGui_ImplGlfw_IsWayland() amend broken 10d0162. (#8921, #8920)

Accidentally broke this while shuffling code...
ocornut 1 өдөр өмнө
parent
commit
72c00f39c1

+ 1 - 1
backends/imgui_impl_glfw.cpp

@@ -231,7 +231,7 @@ static ImGui_ImplGlfw_Data* ImGui_ImplGlfw_GetBackendData(GLFWwindow* window)
 // Functions
 static bool ImGui_ImplGlfw_IsWayland()
 {
-#if GLFW_HAS_X11_OR_WAYLAND
+#if !GLFW_HAS_X11_OR_WAYLAND
     return false;
 #elif GLFW_HAS_GETPLATFORM
     return glfwGetPlatform() == GLFW_PLATFORM_WAYLAND;