Jeck - Replaced ok_quad with ok_tex, which won't expire until the duel is over.

This commit is contained in:
wagic.jeck
2009-09-14 21:09:58 +00:00
parent a84ed94954
commit 1b468bde14
3 changed files with 11 additions and 9 deletions
+2
View File
@@ -73,6 +73,7 @@ void GameStateDuel::Start()
testSuite = NEW TestSuite(RESPATH"/test/_tests.txt",mParent->collection);
#endif
resources.RetrieveTexture("OK.png",RETRIEVE_LOCK);
mGamePhase = DUEL_STATE_CHOOSE_DECK1;
credits = NEW Credits();
@@ -218,6 +219,7 @@ void GameStateDuel::End()
#if defined (WIN32) || defined (LINUX)
OutputDebugString("Ending GamestateDuel\n");
#endif
resources.Release(resources.RetrieveTexture("OK.png"));
resources.SmallCache();
SAFE_DELETE(deckmenu);
JRenderer::GetInstance()->EnableVSync(false);