Clear CPU-side copy of the texture data.
| 2732 | |
| 2733 | // Clear CPU-side copy of the texture data. |
| 2734 | void 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 | |
| 2743 | void ImFontAtlas::CompactCache() |
| 2744 | { |
nothing calls this directly
no test coverage detected