diff options
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); |