all repos — mgba @ ce8db376346cfabd1c4efdc8eef6d1d64450cca1

mGBA Game Boy Advance Emulator

PSP2: Fix GPU crash while exiting
Jeffrey Pfau jeffrey@endrift.com
Sat, 30 Jul 2016 09:48:56 -0700
commit

ce8db376346cfabd1c4efdc8eef6d1d64450cca1

parent

61bfd9d87de131d4d04532c1afe61bd22a8a1233

2 files changed, 9 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.csrc/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;