zzogl: gl resources must be deleted before the destruction of the GL context

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5264 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut 2012-06-02 09:33:40 +00:00
parent ef976706f6
commit 0fff99f4f3
1 changed files with 3 additions and 1 deletions

View File

@ -350,10 +350,12 @@ EXPORT_C_(void) GSclose()
FUNCLOG
ZZDestroy();
// Clean shader. Must be done before the context is delete
ZZshExitCleaning();
GLWin.CloseWindow();
// Free alocated memory. We could close plugin without closing pcsx2, so we SHOULD free all allocated resources
ZZshExitCleaning();
SaveStateFile = NULL;
SaveStateExists = true; // default value
g_LastCRC = 0;