diff options
author | Jannik Vogel <email@jannikvogel.de> | 2016-04-30 10:45:17 +0200 |
---|---|---|
committer | Jannik Vogel <email@jannikvogel.de> | 2016-05-03 15:06:46 +0200 |
commit | 5fc8eb227a6a70b0cc9b268fb9d2f693af0d8fec (patch) | |
tree | a5b1f1039a0dae99d4fa8ad9376723b5bbf05fa9 /src/video_core/renderer_opengl/gl_shader_gen.cpp | |
parent | Pica: Make PicaShaderConfig trivially_copyable and clear it before use (diff) | |
download | yuzu-5fc8eb227a6a70b0cc9b268fb9d2f693af0d8fec.tar yuzu-5fc8eb227a6a70b0cc9b268fb9d2f693af0d8fec.tar.gz yuzu-5fc8eb227a6a70b0cc9b268fb9d2f693af0d8fec.tar.bz2 yuzu-5fc8eb227a6a70b0cc9b268fb9d2f693af0d8fec.tar.lz yuzu-5fc8eb227a6a70b0cc9b268fb9d2f693af0d8fec.tar.xz yuzu-5fc8eb227a6a70b0cc9b268fb9d2f693af0d8fec.tar.zst yuzu-5fc8eb227a6a70b0cc9b268fb9d2f693af0d8fec.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_gen.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_gen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index 9011caa39..51984389c 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -287,7 +287,7 @@ static void AppendAlphaTestCondition(std::string& out, Regs::CompareFunc func) { /// Writes the code to emulate the specified TEV stage static void WriteTevStage(std::string& out, const PicaShaderConfig& config, unsigned index) { - auto& stage = config.tev_stages[index]; + const auto stage = static_cast<const Pica::Regs::TevStageConfig>(config.tev_stages[index]); if (!IsPassThroughTevStage(stage)) { std::string index_name = std::to_string(index); |