mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +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))
|
||||
{
|
||||
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;
|
||||
}
|
||||
else
|
||||
|
|
@ -148,14 +148,17 @@ void CubemapData::updateFaces()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!getCubeMapFace(i))
|
||||
if (mCubeMapFaceAsset[i].notNull())
|
||||
{
|
||||
Con::errorf("CubemapData::createMap - Failed to load texture '%s'", getCubeMapFace(i));
|
||||
initSuccess = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
mCubeMapFaceTex[i] = getCubeMapFace(i);
|
||||
if (!getCubeMapFace(i))
|
||||
{
|
||||
Con::errorf("CubemapData::createMap - Failed to load texture '%s'", mCubeMapFaceAsset[i]->getImageFile());
|
||||
initSuccess = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
mCubeMapFaceTex[i] = getCubeMapFace(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue