mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
MacOSX fixes
This commit is contained in:
parent
c39461c3fb
commit
5f8c59a8df
2 changed files with 3 additions and 4 deletions
|
|
@ -1211,7 +1211,7 @@ bool GBitmap::writeBitmap( const String &bmType, const Torque::Path& path, U32
|
||||||
FileStream stream;
|
FileStream stream;
|
||||||
if (!stream.open(path, Torque::FS::File::Write))
|
if (!stream.open(path, Torque::FS::File::Write))
|
||||||
{
|
{
|
||||||
Con::errorf("GBitmap::writeBitmap failed to open path %s", path);
|
Con::errorf("GBitmap::writeBitmap failed to open path %s", path.getFullFileName().c_str());
|
||||||
stream.close();
|
stream.close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -504,11 +504,10 @@ void TSLastDetail::_update()
|
||||||
String imposterPath = _getDiffuseMapPath();
|
String imposterPath = _getDiffuseMapPath();
|
||||||
String normalsPath = _getNormalMapPath();
|
String normalsPath = _getNormalMapPath();
|
||||||
|
|
||||||
FileStream stream;
|
|
||||||
if (!destBmp.writeBitmap("png", imposterPath))
|
if (!destBmp.writeBitmap("png", imposterPath))
|
||||||
Con::errorf("TSLastDetail::_update() - failed to write imposter %s", imposterPath);
|
Con::errorf("TSLastDetail::_update() - failed to write imposter %s", imposterPath.c_str());
|
||||||
if (!destNormal.writeBitmap("png", normalsPath))
|
if (!destNormal.writeBitmap("png", normalsPath))
|
||||||
Con::errorf("TSLastDetail::_update() - failed to write normal %s", normalsPath);
|
Con::errorf("TSLastDetail::_update() - failed to write normal %s", normalsPath.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
// DEBUG: Some code to force usage of a test image.
|
// DEBUG: Some code to force usage of a test image.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue