diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-13 22:42:55 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-13 22:42:55 -0300 |
| commit | 47100ec8c1b3cabc7d53654163c1dd30b58d483d (patch) | |
| tree | 5b28448fd48438d78fb0a07d3ac5a914b82b8f69 /Ryujinx.Graphics/Gpu | |
| parent | bbcad307bdb8edca121ef6e3d2b13196fdd96a2d (diff) | |
[GPU] Avoid drawing the frame buffer with alpha blend enabled, use correct blend enable register, clear the buffer before drawing
Diffstat (limited to 'Ryujinx.Graphics/Gpu')
| -rw-r--r-- | Ryujinx.Graphics/Gpu/NvGpuEngine3d.cs | 2 | ||||
| -rw-r--r-- | Ryujinx.Graphics/Gpu/NvGpuEngine3dReg.cs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Ryujinx.Graphics/Gpu/NvGpuEngine3d.cs b/Ryujinx.Graphics/Gpu/NvGpuEngine3d.cs index 1142e4aa..fd13367c 100644 --- a/Ryujinx.Graphics/Gpu/NvGpuEngine3d.cs +++ b/Ryujinx.Graphics/Gpu/NvGpuEngine3d.cs @@ -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); diff --git a/Ryujinx.Graphics/Gpu/NvGpuEngine3dReg.cs b/Ryujinx.Graphics/Gpu/NvGpuEngine3dReg.cs index cb0b9d98..4f1dce94 100644 --- a/Ryujinx.Graphics/Gpu/NvGpuEngine3dReg.cs +++ b/Ryujinx.Graphics/Gpu/NvGpuEngine3dReg.cs @@ -16,6 +16,7 @@ namespace Ryujinx.Graphics.Gpu BlendFuncSrcAlpha = 0x4d4, BlendFuncDstAlpha = 0x4d6, BlendEnableMaster = 0x4d7, + IBlendNEnable = 0x4d8, VertexArrayElemBase = 0x50d, TexHeaderPoolOffset = 0x55d, TexSamplerPoolOffset = 0x557, |
