mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-29 07:23:03 +00:00
video_core: stop waiting for shader compilation on user cancel
This commit is contained in:
parent
250c3d555e
commit
fc013d88cb
|
@ -299,7 +299,7 @@ void ShaderCache::LoadDiskResources(u64 title_id, std::stop_token stop_loading,
|
|||
state.has_loaded = true;
|
||||
lock.unlock();
|
||||
|
||||
workers->WaitForRequests();
|
||||
workers->WaitForRequests(stop_loading);
|
||||
if (!use_asynchronous_shaders) {
|
||||
workers.reset();
|
||||
}
|
||||
|
|
|
@ -452,7 +452,7 @@ void PipelineCache::LoadDiskResources(u64 title_id, std::stop_token stop_loading
|
|||
state.has_loaded = true;
|
||||
lock.unlock();
|
||||
|
||||
workers.WaitForRequests();
|
||||
workers.WaitForRequests(stop_loading);
|
||||
|
||||
if (state.statistics) {
|
||||
state.statistics->Report();
|
||||
|
|
Loading…
Reference in a new issue