summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2018-06-18 09:24:52 +0200
committerJules Blok <jules.blok@gmail.com>2018-06-18 09:27:06 +0200
commit7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa (patch)
tree3770c17b711dfcd7e97a4eb7a295813eb23fd09c /src/video_core/renderer_opengl
parentMerge pull request #565 from bunnei/shader_conversions (diff)
downloadyuzu-7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa.tar
yuzu-7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa.tar.gz
yuzu-7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa.tar.bz2
yuzu-7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa.tar.lz
yuzu-7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa.tar.xz
yuzu-7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa.tar.zst
yuzu-7c7f4a9be2e7b15863ed42df844f6a4d2338a1aa.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-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);