From 0fff99f4f30166fbf1fc1206f9c54c5ce55f9a50 Mon Sep 17 00:00:00 2001 From: "gregory.hainaut" Date: Sat, 2 Jun 2012 09:33:40 +0000 Subject: [PATCH] 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 --- plugins/zzogl-pg/opengl/GSmain.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/zzogl-pg/opengl/GSmain.cpp b/plugins/zzogl-pg/opengl/GSmain.cpp index d52ebac4dc..da2ac7b042 100644 --- a/plugins/zzogl-pg/opengl/GSmain.cpp +++ b/plugins/zzogl-pg/opengl/GSmain.cpp @@ -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;