mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
is named target
clear out texHandles on teardown of imageAssets.
This commit is contained in:
parent
18b1b6d1d0
commit
f86497434e
3 changed files with 11 additions and 3 deletions
|
|
@ -163,6 +163,13 @@ ImageAsset::ImageAsset() :
|
|||
|
||||
ImageAsset::~ImageAsset()
|
||||
{
|
||||
ImageTextureMap::iterator resIter = mResourceMap.begin();
|
||||
for (; resIter != mResourceMap.end(); ++resIter)
|
||||
{
|
||||
resIter->value.free();
|
||||
}
|
||||
|
||||
mResourceMap.clear();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ class ImageAsset : public AssetBase
|
|||
typedef AssetPtr<ImageAsset> ConcreteAssetPtr;
|
||||
|
||||
public:
|
||||
typedef HashMap<GFXTextureProfile*, GFXTexHandle> ImageTextureMap;
|
||||
/// The different types of image use cases
|
||||
enum ImageTypes
|
||||
{
|
||||
|
|
@ -137,7 +138,7 @@ private:
|
|||
bool mIsHDRImage;
|
||||
GFXTexHandle mTextureHandle;
|
||||
ImageTypes mImageType;
|
||||
HashMap<GFXTextureProfile*, GFXTexHandle> mResourceMap;
|
||||
ImageTextureMap mResourceMap;
|
||||
bool mIsNamedTarget;
|
||||
S32 mImageWidth;
|
||||
S32 mImageHeight;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue