if a texture is registered, we can use it whether it exists as a file or not (eg. RenderTargets)

This commit is contained in:
Glenn Maynard
2006-07-28 00:26:13 +00:00
parent eafac8fb96
commit 3439a2e546
+2 -1
View File
@@ -125,7 +125,8 @@ void Sprite::LoadFromNode( const RString& sDir, const XNode* pNode )
if( !sPath.empty() )
{
ActorUtil::ResolvePath( sPath, sDir );
if( !TEXTUREMAN->IsTextureRegistered( RageTextureID(sPath) ) )
ActorUtil::ResolvePath( sPath, sDir );
// Load the texture
LoadFromTexture( sPath );