mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Fix H-uru/Plasma#941.
Fixes a reference counting issue that prevents non-DirectXCompressed mipmaps from being used in GUI Lists (eg as icons for avatar clothing). All future clothing PRPs produced by CreateClothingPRP.py will depend on this change.
This commit is contained in:
@ -224,8 +224,9 @@ pfGUIListPicture::pfGUIListPicture( plKey mipKey, hsBool respectAlpha ) : pfGUIL
|
|||||||
char str[ 512 ];
|
char str[ 512 ];
|
||||||
sprintf( str, "%s_uncomp", mip->GetKeyName() );
|
sprintf( str, "%s_uncomp", mip->GetKeyName() );
|
||||||
fMipmapKey = hsgResMgr::ResMgr()->NewKey( str, uncompBuffer, fMipmapKey->GetUoid().GetLocation() );
|
fMipmapKey = hsgResMgr::ResMgr()->NewKey( str, uncompBuffer, fMipmapKey->GetUoid().GetLocation() );
|
||||||
fMipmapKey->RefObject();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fMipmapKey->RefObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
pfGUIListPicture::~pfGUIListPicture()
|
pfGUIListPicture::~pfGUIListPicture()
|
||||||
|
Reference in New Issue
Block a user