ref: 54817eda516330768f82bad522fdb007e51e80ff
parent: 3f6ac2ee5f460312ef13f1d2b72bedcdf4b84014
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Oct 14 11:50:50 EDT 2020
3DS - Fix EnableAlpha
--- a/src/Backends/Rendering/3DS.cpp
+++ b/src/Backends/Rendering/3DS.cpp
@@ -61,10 +61,13 @@
// Setting will not take effect mid-frame, so
// break-up the current frame if we have to.
- if (frame_started && enabled != previous_setting)
+ if (enabled != previous_setting)
{
- C3D_FrameEnd(0);
- frame_started = false;
+ if (frame_started)
+ {
+ 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);