shithub: cstory

Download patch

ref: a82189b0c958fe823fa908e2deb3e8e1c8617158
parent: b6ff494f540e02d6ab9fe27d8b8024ce6b491aa4
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Oct 13 16:59:20 EDT 2020

3DS - Fix more corruption

I swear I'm normally a good programmer ;_;

--- a/src/Backends/Rendering/3DS.cpp
+++ b/src/Backends/Rendering/3DS.cpp
@@ -68,13 +68,13 @@
 		C3D_FrameEnd(0);
 		frame_started = false;
 
+		if (enabled)
+			C3D_AlphaBlend(GPU_BLEND_ADD, GPU_BLEND_ADD, GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA);
+		else
+			C3D_AlphaBlend(GPU_BLEND_ADD, GPU_BLEND_ADD, GPU_ONE, GPU_ZERO, GPU_ONE, GPU_ZERO);
+
 		previous_setting = enabled;
 	}
-
-	if (enabled)
-		C3D_AlphaBlend(GPU_BLEND_ADD, GPU_BLEND_ADD, GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA);
-	else
-		C3D_AlphaBlend(GPU_BLEND_ADD, GPU_BLEND_ADD, GPU_ONE, GPU_ZERO, GPU_ONE, GPU_ZERO);
 }
 
 RenderBackend_Surface* RenderBackend_Init(const char *window_title, size_t screen_width, size_t screen_height, bool fullscreen)