diff options
| author | 2018-06-18 09:24:52 +0200 | |
|---|---|---|
| committer | 2018-06-18 09:27:06 +0200 | |
| commit | 7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa (patch) | |
| tree | 3770c17b711dfcd7e97a4eb7a295813eb23fd09c /src | |
| parent | Merge pull request #565 from bunnei/shader_conversions (diff) | |
| download | yuzu-7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa.tar.gz yuzu-7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa.tar.xz yuzu-7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa.zip | |
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); |