diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-29 20:30:20 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-03-09 22:40:53 +0100 |
commit | b1061afed90db36c6b6d6cc19c6a4495bcef4fec (patch) | |
tree | 089d9cbd623f57b8708db56b233d7c74f7ea4aec /src/video_core/renderer_opengl/gl_shader_cache.cpp | |
parent | gl_shader_decompiler: Roll back to GLSL core 430 (diff) | |
download | yuzu-b1061afed90db36c6b6d6cc19c6a4495bcef4fec.tar yuzu-b1061afed90db36c6b6d6cc19c6a4495bcef4fec.tar.gz yuzu-b1061afed90db36c6b6d6cc19c6a4495bcef4fec.tar.bz2 yuzu-b1061afed90db36c6b6d6cc19c6a4495bcef4fec.tar.lz yuzu-b1061afed90db36c6b6d6cc19c6a4495bcef4fec.tar.xz yuzu-b1061afed90db36c6b6d6cc19c6a4495bcef4fec.tar.zst yuzu-b1061afed90db36c6b6d6cc19c6a4495bcef4fec.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_cache.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_cache.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_cache.cpp b/src/video_core/renderer_opengl/gl_shader_cache.cpp index 593897787..e3d31c3eb 100644 --- a/src/video_core/renderer_opengl/gl_shader_cache.cpp +++ b/src/video_core/renderer_opengl/gl_shader_cache.cpp @@ -186,8 +186,10 @@ std::shared_ptr<Registry> MakeRegistry(const ShaderDiskCacheEntry& entry) { std::shared_ptr<OGLProgram> BuildShader(const Device& device, ShaderType shader_type, u64 unique_identifier, const ShaderIR& ir, const Registry& registry, bool hint_retrievable = false) { - LOG_INFO(Render_OpenGL, "{}", MakeShaderID(unique_identifier, shader_type)); - const std::string glsl = DecompileShader(device, ir, registry, shader_type); + const std::string shader_id = MakeShaderID(unique_identifier, shader_type); + LOG_INFO(Render_OpenGL, "{}", shader_id); + + const std::string glsl = DecompileShader(device, ir, registry, shader_type, shader_id); OGLShader shader; shader.Create(glsl.c_str(), GetGLShaderType(shader_type)); |