move texture load policy into RageTextureID, so it can be set to volatile consistently

for banners/backgrounds
This commit is contained in:
Glenn Maynard
2004-03-26 10:15:18 +00:00
parent 1d92cd087f
commit d5098c84ce
9 changed files with 34 additions and 17 deletions
+1 -1
View File
@@ -261,8 +261,8 @@ RageTextureID BannerCache::LoadCachedBanner( CString BannerPath )
ID.filename.c_str(), src_width, src_height, img->w, img->h );
RageTexture *pTexture = new BannerTexture( ID, img, src_width, src_height );
ID.Policy = RageTextureID::TEX_VOLATILE;
TEXTUREMAN->RegisterTexture( ID, pTexture );
pTexture->m_Policy = RageTexture::TEX_VOLATILE;
TEXTUREMAN->UnloadTexture( pTexture );
return ID;