git.s-ol.nu ~forks/DiligentTools / 6acb0f5
Imgui: fixed display size debug checks for minimized window assiduous 1 year, 1 month ago
3 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
106106 auto& io = ImGui::GetIO();
107107 io.DeltaTime = static_cast<float>(elapsed_ns.count() / 1e+9);
108108
109 VERIFY(io.DisplaySize.x == static_cast<float>(RenderSurfaceWidth), "io.DisplaySize.x (",
109 VERIFY(io.DisplaySize.x == 0 || io.DisplaySize.x == static_cast<float>(RenderSurfaceWidth), "io.DisplaySize.x (",
110110 io.DisplaySize.x, " does not match RenderSurfaceWidth (", RenderSurfaceWidth, ")");
111 VERIFY(io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight), "io.DisplaySize.y (",
111 VERIFY(io.DisplaySize.y == 0 || io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight), "io.DisplaySize.y (",
112112 io.DisplaySize.y, " does not match RenderSurfaceHeight (", RenderSurfaceHeight, ")");
113113
114114 ImGuiImplDiligent::NewFrame(RenderSurfaceWidth, RenderSurfaceHeight, SurfacePreTransform);
111111 auto& io = ImGui::GetIO();
112112 io.DeltaTime = static_cast<float>(elapsed_ns.count() / 1e+9);
113113
114 VERIFY(io.DisplaySize.x == static_cast<float>(RenderSurfaceWidth), "io.DisplaySize.x (",
114 VERIFY(io.DisplaySize.x == 0 || io.DisplaySize.x == static_cast<float>(RenderSurfaceWidth), "io.DisplaySize.x (",
115115 io.DisplaySize.x, " does not match RenderSurfaceWidth (", RenderSurfaceWidth, ")");
116 VERIFY(io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight), "io.DisplaySize.y (",
116 VERIFY(io.DisplaySize.y == 0 || io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight), "io.DisplaySize.y (",
117117 io.DisplaySize.y, " does not match RenderSurfaceHeight (", RenderSurfaceHeight, ")");
118118
119119 ImGuiImplDiligent::NewFrame(RenderSurfaceWidth, RenderSurfaceHeight, SurfacePreTransform);
6666 #ifdef DILIGENT_DEBUG
6767 {
6868 ImGuiIO& io = ImGui::GetIO();
69 VERIFY(io.DisplaySize.x == static_cast<float>(RenderSurfaceWidth),
69 VERIFY(io.DisplaySize.x == 0 || io.DisplaySize.x == static_cast<float>(RenderSurfaceWidth),
7070 "Render surface width (", RenderSurfaceWidth, ") does not match io.DisplaySize.x (", io.DisplaySize.x, ")");
71 VERIFY(io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight),
71 VERIFY(io.DisplaySize.y == 0 || io.DisplaySize.y == static_cast<float>(RenderSurfaceHeight),
7272 "Render surface height (", RenderSurfaceHeight, ") does not match io.DisplaySize.y (", io.DisplaySize.y, ")");
7373 }
7474 #endif