mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 05:13:59 +02:00
- small bugfix for lazy loading textures
This commit is contained in:
@@ -206,6 +206,7 @@ void CoreData::loadTextureIfRequired(Texture2D **tex,string data_path,
|
|||||||
itemLoadAttempted[texSystemId] = true;
|
itemLoadAttempted[texSystemId] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(attemptToLoadTexture == true) {
|
||||||
Renderer &renderer = Renderer::getInstance();
|
Renderer &renderer = Renderer::getInstance();
|
||||||
*tex = renderer.newTexture2D(rsGlobal);
|
*tex = renderer.newTexture2D(rsGlobal);
|
||||||
if (*tex) {
|
if (*tex) {
|
||||||
@@ -237,6 +238,7 @@ void CoreData::loadTextureIfRequired(Texture2D **tex,string data_path,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
string CoreData::getDataPath() {
|
string CoreData::getDataPath() {
|
||||||
string data_path = getGameReadWritePath(GameConstants::path_data_CacheLookupKey);
|
string data_path = getGameReadWritePath(GameConstants::path_data_CacheLookupKey);
|
||||||
|
Reference in New Issue
Block a user