fix duplicate song background loading

This commit is contained in:
Glenn Maynard
2004-03-26 07:41:04 +00:00
parent d10e81c274
commit a2eb502312
+6 -1
View File
@@ -99,7 +99,12 @@ Actor* LoadFromActorFile( CString sIniPath, CString sLayer )
else
sFile = THEME->GetPathToG("Common fallback background");
pActor = MakeActor( sFile );
/* Always load song backgrounds with LoadBG. It sets texture properties;
* if we load a background without setting those properties, we'll end up
* with duplicate loads. */
Sprite* pSprite = new Sprite;
pSprite->LoadBG( sFile );
pActor = pSprite;
}
else if( sFile.CompareNoCase("songbanner")==0 )
{