mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 19:00:14 -05:00
gl_rasterizer: Get loose on independent blending.
This commit is contained in:
parent
3c43ea5c68
commit
7c7f4a9be2
1 changed files with 1 additions and 1 deletions
|
@ -740,7 +740,6 @@ void RasterizerOpenGL::SyncDepthOffset() {
|
||||||
|
|
||||||
void RasterizerOpenGL::SyncBlendState() {
|
void RasterizerOpenGL::SyncBlendState() {
|
||||||
const auto& regs = Core::System().GetInstance().GPU().Maxwell3D().regs;
|
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.
|
// TODO(Subv): Support more than just render target 0.
|
||||||
state.blend.enabled = regs.blend.enable[0] != 0;
|
state.blend.enabled = regs.blend.enable[0] != 0;
|
||||||
|
@ -748,6 +747,7 @@ void RasterizerOpenGL::SyncBlendState() {
|
||||||
if (!state.blend.enabled)
|
if (!state.blend.enabled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
ASSERT_MSG(regs.independent_blend_enable == 1, "Only independent blending is implemented");
|
||||||
ASSERT_MSG(!regs.independent_blend[0].separate_alpha, "Unimplemented");
|
ASSERT_MSG(!regs.independent_blend[0].separate_alpha, "Unimplemented");
|
||||||
state.blend.rgb_equation = MaxwellToGL::BlendEquation(regs.independent_blend[0].equation_rgb);
|
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);
|
state.blend.src_rgb_func = MaxwellToGL::BlendFunc(regs.independent_blend[0].factor_source_rgb);
|
||||||
|
|
Loading…
Reference in a new issue