[GPU] Avoid drawing the frame buffer with alpha blend enabled, use correct blend enable register, clear the buffer before drawing

This commit is contained in:
gdkchan 2018-04-13 22:42:55 -03:00
parent bbcad307bd
commit 47100ec8c1
3 changed files with 19 additions and 3 deletions

View file

@ -168,7 +168,7 @@ namespace Ryujinx.Graphics.Gpu
private void SetAlphaBlending()
{
//TODO: Support independent blend properly.
bool Enable = (ReadRegister(NvGpuEngine3dReg.IBlendEnable) & 1) != 0;
bool Enable = (ReadRegister(NvGpuEngine3dReg.IBlendNEnable) & 1) != 0;
Gpu.Renderer.SetBlendEnable(Enable);