3DS - Fix EnableAlpha
This commit is contained in:
parent
3f6ac2ee5f
commit
54817eda51
1 changed files with 6 additions and 3 deletions
|
@ -61,10 +61,13 @@ static void EnableAlpha(bool enabled)
|
|||
|
||||
// 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);
|
||||
|
|
Loading…
Add table
Reference in a new issue