Skip to content

Commit 21902e2

Browse files
committed
Backends: SDL_GPU: fixed SDL_GPUViewport initialisation. (#8163, #7998, #7988)
Probably harmless. Amend 8bbccf7
1 parent c38c18c commit 21902e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/imgui_impl_sdlgpu3.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ static void ImGui_ImplSDLGPU3_SetupRenderState(ImDrawData* draw_data, SDL_GPUGra
100100
viewport.w = (float)fb_width;
101101
viewport.h = (float)fb_height;
102102
viewport.min_depth = 0.0f;
103-
viewport.min_depth = 1.0f;
103+
viewport.max_depth = 1.0f;
104104
SDL_SetGPUViewport(render_pass,&viewport);
105105

106106
// Setup scale and translation

0 commit comments

Comments
 (0)