mirror of https://github.com/mgba-emu/mgba.git
Switch: Fix final cleanup (fixes #1283)
This commit is contained in:
parent
2d303cdda3
commit
0eaa9e487f
1
CHANGES
1
CHANGES
|
@ -5,6 +5,7 @@ Bugfixes:
|
||||||
- GBA: All IRQs have 7 cycle delay (fixes mgba.io/i/539, mgba.io/i/1208)
|
- GBA: All IRQs have 7 cycle delay (fixes mgba.io/i/539, mgba.io/i/1208)
|
||||||
- GBA: Reset now reloads multiboot ROMs
|
- GBA: Reset now reloads multiboot ROMs
|
||||||
- GBA BIOS: Fix multiboot entry point (fixes Magic Floor)
|
- GBA BIOS: Fix multiboot entry point (fixes Magic Floor)
|
||||||
|
- Switch: Fix final cleanup (fixes mgba.io/i/1283)
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Savedata: EEPROM performance fixes
|
- GBA Savedata: EEPROM performance fixes
|
||||||
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
|
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
|
||||||
|
|
|
@ -149,6 +149,7 @@ _fail0:
|
||||||
|
|
||||||
static void deinitEgl() {
|
static void deinitEgl() {
|
||||||
if (s_display) {
|
if (s_display) {
|
||||||
|
eglMakeCurrent(s_display, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
|
||||||
if (s_context) {
|
if (s_context) {
|
||||||
eglDestroyContext(s_display, s_context);
|
eglDestroyContext(s_display, s_context);
|
||||||
}
|
}
|
||||||
|
@ -726,8 +727,14 @@ int main(int argc, char* argv[]) {
|
||||||
mGUIRunloop(&runner);
|
mGUIRunloop(&runner);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mGUIDeinit(&runner);
|
||||||
|
|
||||||
|
audoutStopAudioOut();
|
||||||
|
GUIFontDestroy(font);
|
||||||
|
|
||||||
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, pbo);
|
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, pbo);
|
||||||
glUnmapBuffer(GL_PIXEL_UNPACK_BUFFER);
|
glUnmapBuffer(GL_PIXEL_UNPACK_BUFFER);
|
||||||
|
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
|
||||||
glDeleteBuffers(1, &pbo);
|
glDeleteBuffers(1, &pbo);
|
||||||
|
|
||||||
glDeleteTextures(1, &tex);
|
glDeleteTextures(1, &tex);
|
||||||
|
|
Loading…
Reference in New Issue