MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / reload

Method reload

src/server/gui/core/resources/TextureResource.cpp:222–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void TextureResource::reload()
223{
224 // For dynamically loaded textures the texture manager will load them on demand.
225 // For manually loaded textures we have to reload them here
226 if (mTextureData && !mTextureData->isLoaded())
227 mTextureData->load();
228
229 // Uncomment this 2 lines in future release in order to reload texture VRAM exactly as it was before
230 // This is commented because it needs true images async loading, or it will be very long
231
232 // else if (mTextureData == nullptr)
233 // sTextureDataManager.get(this);
234}

Callers

nothing calls this directly

Calls 2

isLoadedMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected