mirror of https://github.com/mgba-emu/mgba.git
PSP2: Fix GPU crash while exiting
This commit is contained in:
parent
61bfd9d87d
commit
ce8db37634
1
CHANGES
1
CHANGES
|
@ -8,6 +8,7 @@ Bugfixes:
|
||||||
- SDL: Fix axes being mapped wrong
|
- SDL: Fix axes being mapped wrong
|
||||||
- GBA Memory: Fix mirror on non-overdumped Classic NES games
|
- GBA Memory: Fix mirror on non-overdumped Classic NES games
|
||||||
- Util: Fix realloc semantics in utf16to8
|
- Util: Fix realloc semantics in utf16to8
|
||||||
|
- PSP2: Fix GPU crash while exiting
|
||||||
Misc:
|
Misc:
|
||||||
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
||||||
- OpenGL: Log shader compilation failure
|
- OpenGL: Log shader compilation failure
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
#include <psp2/kernel/threadmgr.h>
|
#include <psp2/kernel/threadmgr.h>
|
||||||
#include <psp2/moduleinfo.h>
|
#include <psp2/moduleinfo.h>
|
||||||
#include <psp2/power.h>
|
#include <psp2/power.h>
|
||||||
|
#include <psp2/sysmodule.h>
|
||||||
#include <psp2/touch.h>
|
#include <psp2/touch.h>
|
||||||
|
|
||||||
#include <vita2d.h>
|
#include <vita2d.h>
|
||||||
|
@ -161,10 +162,16 @@ int main() {
|
||||||
|
|
||||||
mGUIInit(&runner, "psvita");
|
mGUIInit(&runner, "psvita");
|
||||||
mGUIRunloop(&runner);
|
mGUIRunloop(&runner);
|
||||||
|
|
||||||
|
vita2d_fini();
|
||||||
mGUIDeinit(&runner);
|
mGUIDeinit(&runner);
|
||||||
|
|
||||||
|
int pgfLoaded = sceSysmoduleIsLoaded(SCE_SYSMODULE_PGF);
|
||||||
|
if (pgfLoaded != SCE_SYSMODULE_LOADED) {
|
||||||
|
sceSysmoduleLoadModule(SCE_SYSMODULE_PGF);
|
||||||
|
}
|
||||||
GUIFontDestroy(font);
|
GUIFontDestroy(font);
|
||||||
vita2d_fini();
|
sceSysmoduleUnloadModule(SCE_SYSMODULE_PGF);
|
||||||
|
|
||||||
sceKernelExitProcess(0);
|
sceKernelExitProcess(0);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue