1
0
mirror of https://github.com/EduApps-CDG/OpenDX synced 2024-12-30 09:45:37 +01:00

[dxvk] Catch exceptions of type DxvkError on CS thread

This commit is contained in:
Philip Rebohle 2020-10-07 16:29:07 +02:00
parent 0b011ea361
commit 1863c6e81c
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -135,6 +135,7 @@ namespace dxvk {
DxvkCsChunkRef chunk;
try {
while (!m_stopped.load()) {
{ std::unique_lock<std::mutex> lock(m_mutex);
if (chunk) {
@ -160,6 +161,10 @@ namespace dxvk {
if (chunk)
chunk->executeAll(m_context.ptr());
}
} catch (const DxvkError& e) {
Logger::err("Exception on CS thread!");
Logger::err(e.message());
}
}
}