fix dupe texture loads (mostly harmless _blank/_black dupes, but sometimes

more)
This commit is contained in:
Glenn Maynard
2004-04-10 22:15:16 +00:00
parent d7ede40600
commit 668be17204
2 changed files with 8 additions and 1 deletions
+6
View File
@@ -1,6 +1,7 @@
#include "global.h"
#include "RageTextureID.h"
#include "RageTextureManager.h"
#include "RageUtil.h"
void RageTextureID::Init()
{
@@ -51,3 +52,8 @@ bool RageTextureID::operator==(const RageTextureID &rhs) const
// EQUAL(Policy); // don't do this
}
void RageTextureID::SetFilename( const CString &fn )
{
filename = fn;
CollapsePath( filename );
}
+2 -1
View File
@@ -58,7 +58,8 @@ struct RageTextureID
void Init();
RageTextureID() { Init(); }
RageTextureID(const CString &fn) { Init(); filename=fn; }
RageTextureID( const CString &fn ) { Init(); SetFilename(fn); }
void SetFilename( const CString &fn );
};
#endif