Clear CPU-side copy of the texture data.
| 2710 | |
| 2711 | // Clear CPU-side copy of the texture data. |
| 2712 | void 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 | |
| 2721 | void ImFontAtlas::ClearFonts() |
| 2722 | { |
nothing calls this directly
no test coverage detected