PSP2: Fix GPU crash while exiting
Jeffrey Pfau jeffrey@endrift.com
Sat, 30 Jul 2016 09:48:56 -0700
2 files changed,
9 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -8,6 +8,7 @@ Bugfixes:
- SDL: Fix axes being mapped wrong - GBA Memory: Fix mirror on non-overdumped Classic NES games - Util: Fix realloc semantics in utf16to8 + - PSP2: Fix GPU crash while exiting Misc: - 3DS: Use blip_add_delta_fast for a small speed improvement - OpenGL: Log shader compilation failure
M
src/platform/psp2/main.c
→
src/platform/psp2/main.c
@@ -18,6 +18,7 @@ #include <psp2/kernel/processmgr.h>
#include <psp2/kernel/threadmgr.h> #include <psp2/moduleinfo.h> #include <psp2/power.h> +#include <psp2/sysmodule.h> #include <psp2/touch.h> #include <vita2d.h>@@ -161,10 +162,16 @@ };
mGUIInit(&runner, "psvita"); mGUIRunloop(&runner); + + vita2d_fini(); mGUIDeinit(&runner); + int pgfLoaded = sceSysmoduleIsLoaded(SCE_SYSMODULE_PGF); + if (pgfLoaded != SCE_SYSMODULE_LOADED) { + sceSysmoduleLoadModule(SCE_SYSMODULE_PGF); + } GUIFontDestroy(font); - vita2d_fini(); + sceSysmoduleUnloadModule(SCE_SYSMODULE_PGF); sceKernelExitProcess(0); return 0;