From 8b82a228f0235b0fde6ed1832c821abd4d026529 Mon Sep 17 00:00:00 2001 From: gal20 <71563441+gal20@users.noreply.github.com> Date: Sat, 14 Nov 2020 21:46:29 +0200 Subject: [PATCH] change result back to std::optional --- src/video_core/renderer_opengl/gl_shader_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_shader_manager.cpp b/src/video_core/renderer_opengl/gl_shader_manager.cpp index b037f7f09..51ed235de 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.cpp +++ b/src/video_core/renderer_opengl/gl_shader_manager.cpp @@ -254,7 +254,7 @@ public: explicit ShaderDoubleCache(bool separable) : separable(separable) {} std::tuple> Get( const KeyConfigType& key, const Pica::Shader::ShaderSetup& setup) { - ShaderDecompiler::ProgramResult result{}; + std::optional result{}; auto map_it = shader_map.find(key); if (map_it == shader_map.end()) { auto program_opt = CodeGenerator(setup, key, separable);