Clear CPU-side copy of the texture data.
| 2688 | |
| 2689 | // Clear CPU-side copy of the texture data. |
| 2690 | void 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 | |
| 2699 | void ImFontAtlas::ClearFonts() |
| 2700 | { |
nothing calls this directly
no test coverage detected