1
0
mirror of https://github.com/ocornut/imgui.git synced 2025-02-02 20:47:23 +01:00

Backends: SDL_GPU: fixed SDL_GPUViewport initialisation. (#8163, #7998, #7988)

Probably harmless. Amend 8bbccf7
This commit is contained in:
ocornut 2025-01-13 19:51:15 +01:00
parent c38c18c1a0
commit 21902e2f53

View File

@ -100,7 +100,7 @@ static void ImGui_ImplSDLGPU3_SetupRenderState(ImDrawData* draw_data, SDL_GPUGra
viewport.w = (float)fb_width; viewport.w = (float)fb_width;
viewport.h = (float)fb_height; viewport.h = (float)fb_height;
viewport.min_depth = 0.0f; viewport.min_depth = 0.0f;
viewport.min_depth = 1.0f; viewport.max_depth = 1.0f;
SDL_SetGPUViewport(render_pass,&viewport); SDL_SetGPUViewport(render_pass,&viewport);
// Setup scale and translation // Setup scale and translation