Jelajahi Sumber

gl_shader_cache: Properly implement asynchronous shaders

ReinUsesLisp 5 tahun lalu
induk
melakukan
8c166c68d4
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/video_core/renderer_opengl/gl_shader_cache.cpp

+ 1 - 1
src/video_core/renderer_opengl/gl_shader_cache.cpp

@@ -318,7 +318,7 @@ GraphicsPipeline* ShaderCache::CurrentGraphicsPipeline() {
         SetXfbState(graphics_key.xfb_state, regs);
         SetXfbState(graphics_key.xfb_state, regs);
     }
     }
     if (current_pipeline && graphics_key == current_pipeline->Key()) {
     if (current_pipeline && graphics_key == current_pipeline->Key()) {
-        return current_pipeline->IsBuilt() ? current_pipeline : nullptr;
+        return BuiltPipeline(current_pipeline);
     }
     }
     return CurrentGraphicsPipelineSlowPath();
     return CurrentGraphicsPipelineSlowPath();
 }
 }