bind UnloadTexture

This commit is contained in:
Glenn Maynard
2007-05-02 02:11:59 +00:00
parent 230d89eb5e
commit 25b7c141fb
+9 -2
View File
@@ -963,8 +963,15 @@ class LunaSprite: public Luna<Sprite>
public:
static int Load( T* p, lua_State *L )
{
RageTextureID ID( SArg(1) );
p->Load( ID );
if( lua_isnil(L, 1) )
{
p->UnloadTexture();
}
else
{
RageTextureID ID( SArg(1) );
p->Load( ID );
}
return 0;
}
static int LoadBackground( T* p, lua_State *L )