mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-24 07:46:54 +00:00
Optimised game-loading, by not reading terrain textures or calculating bounding boxes when not necessary; maps load about twenty seconds faster (at least in Debug mode). Also fixed possible minor bug (FLT_MIN vs -FLT_MAX) and other trivial things.
This was SVN commit r1917.
This commit is contained in:
@@ -44,7 +44,7 @@ void CModelRData::Build()
|
||||
// build data
|
||||
BuildVertices();
|
||||
BuildIndices();
|
||||
// force a texture load on models texture
|
||||
// force a texture load on model's texture
|
||||
g_Renderer.LoadTexture(m_Model->GetTexture(),GL_CLAMP_TO_EDGE);
|
||||
// setup model render flags
|
||||
/*if (g_Renderer.IsTextureTransparent(m_Model->GetTexture())) {
|
||||
|
||||
Reference in New Issue
Block a user