Browse Source

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.
tickets/14/14/3
Adam Johnson 4 years ago
parent
commit
86d2da35b7
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 3
      Sources/Plasma/FeatureLib/pfGameGUIMgr/pfGUIListElement.cpp

3
Sources/Plasma/FeatureLib/pfGameGUIMgr/pfGUIListElement.cpp

@ -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()

Loading…
Cancel
Save