Backends: Remove redundant BackendFlags setting in SDL_Surface initialization

This commit is contained in:
moonpower
2025-12-26 02:51:18 +01:00
parent b3c5626b1f
commit 189330241b
-1
View File
@@ -123,7 +123,6 @@ bool ImGui_ImplSDLSurface2_Init(SDL_Surface* surface)
ImGuiIO& io = ImGui::GetIO();
IM_ASSERT(io.BackendRendererName == nullptr && "Already initialized a renderer backend!");
io.BackendRendererName = "imgui_impl_sdlsurface2";
io.BackendFlags |= ImGuiBackendFlags_RendererHasTextures;
g_TargetSurface = surface;
g_FontSurface = ImGui_ImplSDLSurface2_CreateFontAtlasSurface();