diff options
| author | 2018-06-18 11:36:50 -0400 | |
|---|---|---|
| committer | 2018-06-18 11:36:50 -0400 | |
| commit | ea080501fb6911599534201c1806516b1cb71285 (patch) | |
| tree | c78d8707ca9c6b598eabea6b8c1f83df6bc90807 /src | |
| parent | Merge pull request #569 from bunnei/fix-cache (diff) | |
| parent | gl_rasterizer: Get loose on independent blending. (diff) | |
| download | yuzu-ea080501fb6911599534201c1806516b1cb71285.tar.gz yuzu-ea080501fb6911599534201c1806516b1cb71285.tar.xz yuzu-ea080501fb6911599534201c1806516b1cb71285.zip | |
Merge pull request #571 from Armada651/loose-blend
gl_rasterizer: Get loose on independent blending.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index 6f05f24a0..833ff8273 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp | |||
| @@ -740,7 +740,6 @@ void RasterizerOpenGL::SyncDepthOffset() { | |||
| 740 | 740 | ||
| 741 | void RasterizerOpenGL::SyncBlendState() { | 741 | void RasterizerOpenGL::SyncBlendState() { |
| 742 | const auto& regs = Core::System().GetInstance().GPU().Maxwell3D().regs; | 742 | const auto& regs = Core::System().GetInstance().GPU().Maxwell3D().regs; |
| 743 | ASSERT_MSG(regs.independent_blend_enable == 1, "Only independent blending is implemented"); | ||
| 744 | 743 | ||
| 745 | // TODO(Subv): Support more than just render target 0. | 744 | // TODO(Subv): Support more than just render target 0. |
| 746 | state.blend.enabled = regs.blend.enable[0] != 0; | 745 | state.blend.enabled = regs.blend.enable[0] != 0; |
| @@ -748,6 +747,7 @@ void RasterizerOpenGL::SyncBlendState() { | |||
| 748 | if (!state.blend.enabled) | 747 | if (!state.blend.enabled) |
| 749 | return; | 748 | return; |
| 750 | 749 | ||
| 750 | ASSERT_MSG(regs.independent_blend_enable == 1, "Only independent blending is implemented"); | ||
| 751 | ASSERT_MSG(!regs.independent_blend[0].separate_alpha, "Unimplemented"); | 751 | ASSERT_MSG(!regs.independent_blend[0].separate_alpha, "Unimplemented"); |
| 752 | state.blend.rgb_equation = MaxwellToGL::BlendEquation(regs.independent_blend[0].equation_rgb); | 752 | state.blend.rgb_equation = MaxwellToGL::BlendEquation(regs.independent_blend[0].equation_rgb); |
| 753 | state.blend.src_rgb_func = MaxwellToGL::BlendFunc(regs.independent_blend[0].factor_source_rgb); | 753 | state.blend.src_rgb_func = MaxwellToGL::BlendFunc(regs.independent_blend[0].factor_source_rgb); |