Better way to handle EnableAlpha mid-frame
This should have much lower overhead
This commit is contained in:
parent
d006b6c439
commit
c50155b1b0
1 changed files with 1 additions and 4 deletions
|
@ -64,10 +64,7 @@ static void EnableAlpha(bool enabled)
|
||||||
if (enabled != previous_setting)
|
if (enabled != previous_setting)
|
||||||
{
|
{
|
||||||
if (frame_started)
|
if (frame_started)
|
||||||
{
|
C2D_Flush();
|
||||||
C3D_FrameEnd(0);
|
|
||||||
frame_started = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (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);
|
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