| 267 | } |
| 268 | |
| 269 | bool 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 | |
| 277 | void TextureData::GetUncompressedData(unsigned char *data) { |
| 278 | if (is_loaded) { |
no test coverage detected