3DS - Note a crash

This commit is contained in:
Clownacy 2020-10-13 22:27:15 +01:00
parent 007b455426
commit 4c034571c8

View file

@ -117,8 +117,12 @@ void RenderBackend_Deinit(void)
RenderBackend_FreeSurface(framebuffer_surface);
// For some dumbass reason, all calls to C3D_RenderTargetDelete
// causes the game to hang while shutting-down
C3D_RenderTargetDelete(screen_render_target);
// These probably implicitly call C3D_RenderTargetDelete, also
// causing a hang
C2D_Fini();
C3D_Fini();
}
@ -226,6 +230,8 @@ void RenderBackend_FreeSurface(RenderBackend_Surface *surface)
frame_started = false;
}
// For some dumbass reason, all calls to C3D_RenderTargetDelete
// causes the game to hang while shutting-down
if (surface->render_target != NULL)
C3D_RenderTargetDelete(surface->render_target);