Be more robust to broken terrain property files.

This was SVN commit r8888.
This commit is contained in:
Ykkrosh
2011-02-05 13:13:57 +00:00
parent caad072347
commit bf3d5c75f0
4 changed files with 7 additions and 4 deletions
+2
View File
@@ -33,6 +33,8 @@ CTerrainTextureEntry::CTerrainTextureEntry(CTerrainPropertiesPtr props, const Vf
m_BaseColor(0),
m_BaseColorValid(false)
{
debug_assert(props);
CTextureProperties texture(path);
texture.SetWrap(GL_REPEAT);