diff options
author | bunnei <bunneidev@gmail.com> | 2016-05-03 13:44:07 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-05-03 13:44:07 +0200 |
commit | 678d15761f7a4070849476f736158d7c8215ff2c (patch) | |
tree | 18e3f62447d97ffc409e07dc9f72c73b10b79a2a /src/video_core/renderer_opengl/gl_rasterizer.h | |
parent | Merge pull request #1750 from JayFoxRox/cleanup-shader-input (diff) | |
parent | OpenGL: Don't copy const_color (Reverts #1745) (diff) | |
download | yuzu-678d15761f7a4070849476f736158d7c8215ff2c.tar yuzu-678d15761f7a4070849476f736158d7c8215ff2c.tar.gz yuzu-678d15761f7a4070849476f736158d7c8215ff2c.tar.bz2 yuzu-678d15761f7a4070849476f736158d7c8215ff2c.tar.lz yuzu-678d15761f7a4070849476f736158d7c8215ff2c.tar.xz yuzu-678d15761f7a4070849476f736158d7c8215ff2c.tar.zst yuzu-678d15761f7a4070849476f736158d7c8215ff2c.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.h b/src/video_core/renderer_opengl/gl_rasterizer.h index 63ff7716d..82fa61742 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.h +++ b/src/video_core/renderer_opengl/gl_rasterizer.h @@ -49,7 +49,9 @@ struct PicaShaderConfig { res.alpha_test_func = regs.output_merger.alpha_test.enable ? regs.output_merger.alpha_test.func.Value() : Pica::Regs::CompareFunc::Always; - // Copy tev stages + // Copy relevant tev stages fields. + // We don't sync const_color here because of the high variance, it is a + // shader uniform instead. const auto& tev_stages = regs.GetTevStages(); DEBUG_ASSERT(res.tev_stages.size() == tev_stages.size()); for (size_t i = 0; i < tev_stages.size(); i++) { @@ -57,7 +59,6 @@ struct PicaShaderConfig { res.tev_stages[i].sources_raw = tev_stage.sources_raw; res.tev_stages[i].modifiers_raw = tev_stage.modifiers_raw; res.tev_stages[i].ops_raw = tev_stage.ops_raw; - res.tev_stages[i].const_color = tev_stage.const_color; res.tev_stages[i].scales_raw = tev_stage.scales_raw; } |