diff --git a/Engine/source/gfx/bitmap/gBitmap.cpp b/Engine/source/gfx/bitmap/gBitmap.cpp index c18859b67..2a7054008 100644 --- a/Engine/source/gfx/bitmap/gBitmap.cpp +++ b/Engine/source/gfx/bitmap/gBitmap.cpp @@ -1211,7 +1211,7 @@ bool GBitmap::writeBitmap( const String &bmType, const Torque::Path& path, U32 FileStream stream; 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(); return false; } diff --git a/Engine/source/ts/tsLastDetail.cpp b/Engine/source/ts/tsLastDetail.cpp index a9ada6445..a65a22851 100644 --- a/Engine/source/ts/tsLastDetail.cpp +++ b/Engine/source/ts/tsLastDetail.cpp @@ -504,11 +504,10 @@ void TSLastDetail::_update() String imposterPath = _getDiffuseMapPath(); String normalsPath = _getNormalMapPath(); - FileStream stream; 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)) - 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.