Closed JoeyLiang-0 closed 8 months ago
I can't understand how the commit description (https://github.com/libsdl-org/SDL/commit/54c2ba6afd776d0d0c8f2bc438ad34d49a9cd87c) would relate/affect your backend.
You may want to see which underlying backend your SDL_Renderer is using, see if changing it fixes something etc.
DirectX12 is used under the SDL_Renderer3. If I revert just src/render/direct3d12/* from commit 54c2ba6a to 4ba6aeee, everything backs to normal. At 64c2ba6a where SDL_Renderer3 has issue, both example_win32_directx12 and exaple_sdl3_opengl3 render content correctly.
Given the expected contents of that commit I would say it seems like a bug in SDL3 wip branch.
Thanks for your comments, and the great project too! I will follow this issue on SDL side when getting some free time.
@ocornut You are right. Today, I sync-ed to the latest SDL source code, and kept ImGui code the same (659fb41...), the example_sdl3_sdlrenderer3 renders content correctly again! Thank you very much,
Great to hear, closing this :)
Version/Branch of Dear ImGui:
Version 1.90.3, sync to latest (659fb41d...), Branch: master
Back-ends:
imgui_impl_sdl3.cpp + imgui_impl_sdlrenderer3.cpp
Compiler, OS:
Windows 11, Visual Studio 2022
Full config/build information:
Details:
Recently updated SDL and found the sdl3+sdlRenderer3 no longer works correctly. I use the latest ImGUI code with sdl3+sdlRenderer3 example to narrow down the issue is due to recent SDL update. From SDL main branch, rendering with 4ba6aeee9d6fe224aaf8b7a682647891991969a6 is still correct, but since 54c2ba6afd776d0d0c8f2bc438ad34d49a9cd87c the rendering is messed up. Please refer to the attached screenshots for the good/bad comparison.
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
(https://github.com/ocornut/imgui/tree/master/examples/example_sdl3_sdlrenderer3)