MCPcopy Create free account
hub / github.com/cinder/Cinder / ClearTexData

Method ClearTexData

src/imgui/imgui_draw.cpp:2690–2697  ·  view source on GitHub ↗

Clear CPU-side copy of the texture data.

Source from the content-addressed store, hash-verified

2688
2689// Clear CPU-side copy of the texture data.
2690void ImFontAtlas::ClearTexData()
2691{
2692 IM_ASSERT(!Locked && "Cannot modify a locked ImFontAtlas!");
2693 IM_ASSERT(RendererHasTextures == false && "Not supported for dynamic atlases, but you may call Clear().");
2694 for (ImTextureData* tex : TexList)
2695 tex->DestroyPixels();
2696 //Locked = true; // Hoped to be able to lock this down but some reload patterns may not be happy with it.
2697}
2698
2699void ImFontAtlas::ClearFonts()
2700{

Callers

nothing calls this directly

Calls 1

DestroyPixelsMethod · 0.80

Tested by

no test coverage detected