shithub: cstory

Download patch

ref: 4c034571c866171b33bfb429c6525d325e6350e3
parent: 007b455426664ed57d81b0383cf20fe0f220e752
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Oct 13 18:27:15 EDT 2020

3DS - Note a crash

--- a/src/Backends/Rendering/3DS.cpp
+++ b/src/Backends/Rendering/3DS.cpp
@@ -117,8 +117,12 @@
 
 	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 @@
 		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);