diff options
Diffstat (limited to 'Imgui/src/ImGuiImplLinuxXCB.cpp')
| -rw-r--r-- | Imgui/src/ImGuiImplLinuxXCB.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Imgui/src/ImGuiImplLinuxXCB.cpp b/Imgui/src/ImGuiImplLinuxXCB.cpp index fbfaba7..8063cda 100644 --- a/Imgui/src/ImGuiImplLinuxXCB.cpp +++ b/Imgui/src/ImGuiImplLinuxXCB.cpp @@ -45,6 +45,8 @@ #include "ImGuiImplLinuxXCB.hpp" +#include "DebugUtilities.hpp" + namespace Diligent { @@ -110,6 +112,11 @@ 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 (", + io.DisplaySize.x, " does not match RenderSurfaceWidth (", RenderSurfaceWidth, ")"); + VERIFY(io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight), "io.DisplaySize.y (", + io.DisplaySize.y, " does not match RenderSurfaceHeight (", RenderSurfaceHeight, ")"); + ImGuiImplDiligent::NewFrame(RenderSurfaceWidth, RenderSurfaceHeight, SurfacePreTransform); } |
