Skip to content

@modoki/engine / index / disposeAllSharedTextures

Function: disposeAllSharedTextures()

disposeAllSharedTextures(): void

Hard reset — dispose every shared texture regardless of refcount and clear the cache. For genuine FULL teardown / tests only, NOT mid-session scene swaps: a swap relies on refcounting (a texture shared by the outgoing and incoming scene must survive), so force-flushing there would dispose a live texture.

Returns

void

Built with Modoki.