mirror of
https://github.com/glest/glest-source.git
synced 2025-08-15 21:04:00 +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;
|
||||
}
|
||||
|
||||
if(attemptToLoadTexture == true) {
|
||||
Renderer &renderer = Renderer::getInstance();
|
||||
*tex = renderer.newTexture2D(rsGlobal);
|
||||
if (*tex) {
|
||||
@@ -236,6 +237,7 @@ void CoreData::loadTextureIfRequired(Texture2D **tex,string data_path,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
string CoreData::getDataPath() {
|
||||
|
Reference in New Issue
Block a user