mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +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
|
|
@ -246,10 +246,14 @@ U32 GFXTextureObject::getEstimatedSizeInBytes() const
|
|||
|
||||
bool GFXTextureObject::dumpToDisk( const String &bmType, const String &path )
|
||||
{
|
||||
FileStream stream;
|
||||
if ( !stream.open( path, Torque::FS::File::Write ) )
|
||||
return false;
|
||||
|
||||
if ( mBitmap )
|
||||
return mBitmap->writeBitmap( bmType, path);
|
||||
return mBitmap->writeBitmap( bmType, stream );
|
||||
|
||||
GBitmap bitmap( getWidth(), getHeight(), false, getFormat() );
|
||||
copyToBmp( &bitmap );
|
||||
return bitmap.writeBitmap( bmType, path);
|
||||
return bitmap.writeBitmap( bmType, stream );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue