ImGuiNET / ImGui.NET

An ImGui wrapper for .NET.
MIT License
1.87k stars 304 forks source link

A render failure with SdlRenderer? #406

Open YTomTJ opened 1 year ago

YTomTJ commented 1 year ago

Recently, I encountered a problem when develop my library ImGui.SdlCs to render the UI with SdlRenderer.

The major problem is that the widgets couldn't be rendered entirely like following. 1

Moreover, the widgets are not fully painted in the window. 2

I'm not sure what makes it wrong, but I'm sure the code is equivalent to example_sdl2_sdlrenderer2 of original imgui c++ code. And I have located the problem in SDL_RenderGeometryRaw() at line 148 in file. So, what could be the cause of the problem ?