From 45bc5b465edc5c656048f7842a1fe160c96b29b4 Mon Sep 17 00:00:00 2001 From: James Rowe Date: Mon, 9 Sep 2019 19:48:40 -0600 Subject: [PATCH] Add a error log for unsupported configurations for disk cache --- src/core/core.cpp | 4 ++-- src/video_core/renderer_opengl/gl_shader_manager.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 5502d2e739..ebaee4f870 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -198,8 +198,8 @@ System::ResultStatus System::Init(Frontend::EmuWindow& emu_window, u32 system_mo timing = std::make_unique(); - kernel = std::make_unique( - *memory, *timing, [this] { PrepareReschedule(); }, system_mode); + kernel = std::make_unique(*memory, *timing, + [this] { PrepareReschedule(); }, system_mode); if (Settings::values.use_cpu_jit) { #ifdef ARCHITECTURE_x86_64 diff --git a/src/video_core/renderer_opengl/gl_shader_manager.cpp b/src/video_core/renderer_opengl/gl_shader_manager.cpp index bb31e2ed76..a72ec5b960 100644 --- a/src/video_core/renderer_opengl/gl_shader_manager.cpp +++ b/src/video_core/renderer_opengl/gl_shader_manager.cpp @@ -435,6 +435,8 @@ void ShaderProgramManager::ApplyTo(OpenGLState& state) { void ShaderProgramManager::LoadDiskCache(const std::atomic_bool& stop_loading, const VideoCore::DiskResourceLoadCallback& callback) { if (!impl->separable) { + LOG_ERROR(Render_OpenGL, + "Cannot load disk cache as separate shader programs are unsupported!"); return; } auto& disk_cache = impl->disk_cache;