mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Update cubemapData.cpp
This commit is contained in:
parent
b2fe48ab8d
commit
15503cbf7c
1 changed files with 11 additions and 8 deletions
|
|
@ -112,7 +112,7 @@ void CubemapData::createMap()
|
||||||
{
|
{
|
||||||
if (!getCubeMapFace(i))
|
if (!getCubeMapFace(i))
|
||||||
{
|
{
|
||||||
Con::errorf("CubemapData::createMap - Failed to load texture '%s'", getCubeMapFace(i));
|
Con::errorf("CubemapData::createMap - Failed to load texture '%s'", mCubeMapFaceAsset[i]->getImageFile());
|
||||||
initSuccess = false;
|
initSuccess = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -148,14 +148,17 @@ void CubemapData::updateFaces()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!getCubeMapFace(i))
|
if (mCubeMapFaceAsset[i].notNull())
|
||||||
{
|
{
|
||||||
Con::errorf("CubemapData::createMap - Failed to load texture '%s'", getCubeMapFace(i));
|
if (!getCubeMapFace(i))
|
||||||
initSuccess = false;
|
{
|
||||||
}
|
Con::errorf("CubemapData::createMap - Failed to load texture '%s'", mCubeMapFaceAsset[i]->getImageFile());
|
||||||
else
|
initSuccess = false;
|
||||||
{
|
}
|
||||||
mCubeMapFaceTex[i] = getCubeMapFace(i);
|
else
|
||||||
|
{
|
||||||
|
mCubeMapFaceTex[i] = getCubeMapFace(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue