mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-26 07:39:27 +00:00
revert #1148 as prematurely incorporated
it's getting there, but there have been a few spots noted where it eroneously corrupts text, so we'll have to pull this back out for a bit barring a proper resolution
This commit is contained in:
parent
78b56688d3
commit
f946088214
22 changed files with 1813 additions and 20385 deletions
|
|
@ -504,10 +504,14 @@ void TSLastDetail::_update()
|
|||
String imposterPath = _getDiffuseMapPath();
|
||||
String normalsPath = _getNormalMapPath();
|
||||
|
||||
if (!destBmp.writeBitmap("png", 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.c_str());
|
||||
FileStream stream;
|
||||
if ( stream.open( imposterPath, Torque::FS::File::Write ) )
|
||||
destBmp.writeBitmap( "png", stream );
|
||||
stream.close();
|
||||
|
||||
if ( stream.open( normalsPath, Torque::FS::File::Write ) )
|
||||
destNormal.writeBitmap( "png", stream );
|
||||
stream.close();
|
||||
}
|
||||
|
||||
// DEBUG: Some code to force usage of a test image.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue