diff options
Diffstat (limited to 'Imgui/src/ImGuiImplLinuxXCB.cpp')
| -rw-r--r-- | Imgui/src/ImGuiImplLinuxXCB.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Imgui/src/ImGuiImplLinuxXCB.cpp b/Imgui/src/ImGuiImplLinuxXCB.cpp index 8063cda..535c042 100644 --- a/Imgui/src/ImGuiImplLinuxXCB.cpp +++ b/Imgui/src/ImGuiImplLinuxXCB.cpp @@ -112,9 +112,9 @@ void ImGuiImplLinuxXCB::NewFrame(Uint32 RenderSurfaceWidth, auto& io = ImGui::GetIO(); io.DeltaTime = static_cast<float>(elapsed_ns.count() / 1e+9); - VERIFY(io.DisplaySize.x == static_cast<float>(RenderSurfaceWidth), "io.DisplaySize.x (", + VERIFY(io.DisplaySize.x == 0 || io.DisplaySize.x == static_cast<float>(RenderSurfaceWidth), "io.DisplaySize.x (", io.DisplaySize.x, " does not match RenderSurfaceWidth (", RenderSurfaceWidth, ")"); - VERIFY(io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight), "io.DisplaySize.y (", + VERIFY(io.DisplaySize.y == 0 || io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight), "io.DisplaySize.y (", io.DisplaySize.y, " does not match RenderSurfaceHeight (", RenderSurfaceHeight, ")"); ImGuiImplDiligent::NewFrame(RenderSurfaceWidth, RenderSurfaceHeight, SurfacePreTransform); |
