MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / EnsureInRAM

Method EnsureInRAM

Source/Images/texture_data.cpp:269–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269bool TextureData::EnsureInRAM() {
270 if (!is_loaded) {
271 LOGW << "Reloading " << source_path << " into ram from disk, it's needed again" << endl;
272 return Load(source_path.c_str());
273 }
274 return true;
275}
276
277void TextureData::GetUncompressedData(unsigned char *data) {
278 if (is_loaded) {

Callers 2

subImageMethod · 0.80
TextureToVRAMMethod · 0.80

Calls 2

LoadFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected