summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-18 17:36:50 +0200
committerGitHub <noreply@github.com>2018-06-18 17:36:50 +0200
commitea080501fb6911599534201c1806516b1cb71285 (patch)
treec78d8707ca9c6b598eabea6b8c1f83df6bc90807
parentMerge pull request #569 from bunnei/fix-cache (diff)
parentgl_rasterizer: Get loose on independent blending. (diff)
downloadyuzu-ea080501fb6911599534201c1806516b1cb71285.tar
yuzu-ea080501fb6911599534201c1806516b1cb71285.tar.gz
yuzu-ea080501fb6911599534201c1806516b1cb71285.tar.bz2
yuzu-ea080501fb6911599534201c1806516b1cb71285.tar.lz
yuzu-ea080501fb6911599534201c1806516b1cb71285.tar.xz
yuzu-ea080501fb6911599534201c1806516b1cb71285.tar.zst
yuzu-ea080501fb6911599534201c1806516b1cb71285.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp2
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() {
void RasterizerOpenGL::SyncBlendState() {
const auto& regs = Core::System().GetInstance().GPU().Maxwell3D().regs;
- ASSERT_MSG(regs.independent_blend_enable == 1, "Only independent blending is implemented");
// TODO(Subv): Support more than just render target 0.
state.blend.enabled = regs.blend.enable[0] != 0;
@@ -748,6 +747,7 @@ void RasterizerOpenGL::SyncBlendState() {
if (!state.blend.enabled)
return;
+ ASSERT_MSG(regs.independent_blend_enable == 1, "Only independent blending is implemented");
ASSERT_MSG(!regs.independent_blend[0].separate_alpha, "Unimplemented");
state.blend.rgb_equation = MaxwellToGL::BlendEquation(regs.independent_blend[0].equation_rgb);
state.blend.src_rgb_func = MaxwellToGL::BlendFunc(regs.independent_blend[0].factor_source_rgb);