mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-30 22:05:46 +08:00
Backends: SDL_GPU: fixed SDL_GPUViewport initialisation. (#8163, #7998, #7988)
build / Windows (push) Waiting to run
build / Linux (push) Waiting to run
build / MacOS (push) Waiting to run
build / iOS (push) Waiting to run
build / Emscripten (push) Waiting to run
build / Android (push) Waiting to run
scheduled / scheduled (push) Has been cancelled
build / Windows (push) Waiting to run
build / Linux (push) Waiting to run
build / MacOS (push) Waiting to run
build / iOS (push) Waiting to run
build / Emscripten (push) Waiting to run
build / Android (push) Waiting to run
scheduled / scheduled (push) Has been cancelled
Probably harmless. Amend 8bbccf7
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user