MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / ClearTexData

Method ClearTexData

imgui_tiny_app/imgui/imgui_draw.cpp:2712–2719  ·  view source on GitHub ↗

Clear CPU-side copy of the texture data.

Source from the content-addressed store, hash-verified

2710
2711// Clear CPU-side copy of the texture data.
2712void ImFontAtlas::ClearTexData()
2713{
2714 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas!");
2715 IM_ASSERT(RendererHasTextures == false && "Not supported for dynamic atlases, but you may call Clear().");
2716 for (ImTextureData* tex : TexList)
2717 tex->DestroyPixels();
2718 //Locked = true; // Hoped to be able to lock this down but some reload patterns may not be happy with it.
2719}
2720
2721void ImFontAtlas::ClearFonts()
2722{

Callers

nothing calls this directly

Calls 1

DestroyPixelsMethod · 0.80

Tested by

no test coverage detected