diff options
author | bunnei <bunneidev@gmail.com> | 2015-10-10 04:46:47 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-10-22 03:58:59 +0200 |
commit | 240a3b80d970b56b4ed3671536489eb0e32532ae (patch) | |
tree | 487d5b0cda1965e8e80cd8e3c17b0cece3ad3cec /src/video_core/renderer_opengl/gl_shader_gen.cpp | |
parent | gl_shader_gen: Require explicit uniform locations. (diff) | |
download | yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar.gz yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar.bz2 yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar.lz yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar.xz yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.tar.zst yuzu-240a3b80d970b56b4ed3671536489eb0e32532ae.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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index 50bb2e3cc..84883b483 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -278,7 +278,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 ShaderCacheKey& config, unsigned index) { +static void WriteTevStage(std::string& out, const PicaShaderConfig& config, unsigned index) { auto& stage = config.tev_stages[index]; if (!IsPassThroughTevStage(stage)) { std::string index_name = std::to_string(index); @@ -319,7 +319,7 @@ static void WriteTevStage(std::string& out, const ShaderCacheKey& config, unsign out += "g_combiner_buffer.a = g_last_tex_env_out.a;\n"; } -std::string GenerateFragmentShader(const ShaderCacheKey& config) { +std::string GenerateFragmentShader(const PicaShaderConfig& config) { std::string out = R"( #version 330 #extension GL_ARB_explicit_uniform_location : require |