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:
parent
0b011ea361
commit
1863c6e81c
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user