fix AV when using material that didn't load because texture doesn't exist

This commit is contained in:
Chris Danford
2006-07-24 09:05:14 +00:00
parent ab978ef733
commit 567b4e8c6a
4 changed files with 49 additions and 22 deletions
+11 -1
View File
@@ -27,7 +27,17 @@ AnimatedTexture::~AnimatedTexture()
Unload();
}
void AnimatedTexture::Load( RString sTexOrIniPath )
void AnimatedTexture::LoadBlank()
{
AnimatedTextureState state(
NULL,
1,
RageVector2(0,0)
);
vFrames.push_back( state );
}
void AnimatedTexture::Load( const RString &sTexOrIniPath )
{
ASSERT( vFrames.empty() ); // don't load more than once