diff --git a/src/State.cpp b/src/State.cpp index ad4837dac3..f81983a5bf 100644 --- a/src/State.cpp +++ b/src/State.cpp @@ -93,7 +93,7 @@ void State::Load() if (advanced["Compiler Threads"].is_number_integer()) shaderCache.compilationThreadCount = std::clamp(advanced["Compiler Threads"].get(), 1, static_cast(std::thread::hardware_concurrency())); if (advanced["Background Compiler Threads"].is_number_integer()) - shaderCache.backgroundCompilationThreadCount = std::clamp(advanced["Compiler Threads"].get(), 1, static_cast(std::thread::hardware_concurrency())); + shaderCache.backgroundCompilationThreadCount = std::clamp(advanced["Background Compiler Threads"].get(), 1, static_cast(std::thread::hardware_concurrency())); } if (settings["General"].is_object()) {