From 21902e2f53602ff85e4f23fe4d974864997f4648 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 13 Jan 2025 19:51:15 +0100 Subject: [PATCH] Backends: SDL_GPU: fixed SDL_GPUViewport initialisation. (#8163, #7998, #7988) Probably harmless. Amend 8bbccf7 --- backends/imgui_impl_sdlgpu3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_sdlgpu3.cpp b/backends/imgui_impl_sdlgpu3.cpp index e681efdc3..7eb5eeb08 100644 --- a/backends/imgui_impl_sdlgpu3.cpp +++ b/backends/imgui_impl_sdlgpu3.cpp @@ -100,7 +100,7 @@ static void ImGui_ImplSDLGPU3_SetupRenderState(ImDrawData* draw_data, SDL_GPUGra viewport.w = (float)fb_width; viewport.h = (float)fb_height; viewport.min_depth = 0.0f; - viewport.min_depth = 1.0f; + viewport.max_depth = 1.0f; SDL_SetGPUViewport(render_pass,&viewport); // Setup scale and translation