MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / ClearTexData

Method ClearTexData

include/imgui/imgui_draw.cpp:2734–2741  ·  view source on GitHub ↗

Clear CPU-side copy of the texture data.

Source from the content-addressed store, hash-verified

2732
2733// Clear CPU-side copy of the texture data.
2734void ImFontAtlas::ClearTexData()
2735{
2736 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas!");
2737 IM_ASSERT(RendererHasTextures == false && "Not supported for dynamic atlases, but you may call Clear().");
2738 for (ImTextureData* tex : TexList)
2739 tex->DestroyPixels();
2740 //Locked = true; // Hoped to be able to lock this down but some reload patterns may not be happy with it.
2741}
2742
2743void ImFontAtlas::CompactCache()
2744{

Callers

nothing calls this directly

Calls 1

DestroyPixelsMethod · 0.80

Tested by

no test coverage detected