mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-05 21:40:31 +00:00
Revert "revert #1148 as prematurely incorporated"
This reverts commit f946088214.
This commit is contained in:
parent
bd2121b674
commit
7216ba8530
22 changed files with 20385 additions and 1813 deletions
|
|
@ -477,16 +477,9 @@ void TerrainBlock::_updateBaseTexture(bool writeToCache)
|
|||
}
|
||||
else
|
||||
{
|
||||
FileStream stream;
|
||||
if (!stream.open(_getBaseTexCacheFileName(), Torque::FS::File::Write))
|
||||
{
|
||||
mBaseTex = blendTex;
|
||||
return;
|
||||
}
|
||||
|
||||
GBitmap bitmap(blendTex->getWidth(), blendTex->getHeight(), false, GFXFormatR8G8B8A8);
|
||||
blendTex->copyToBmp(&bitmap);
|
||||
bitmap.writeBitmap(formatToExtension(mBaseTexFormat), stream);
|
||||
bitmap.writeBitmap(formatToExtension(mBaseTexFormat), _getBaseTexCacheFileName());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue