| 220 | } |
| 221 | |
| 222 | void 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 | } |