upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/dxgi_com.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/shims/dxgi_com.cpp')
-rw-r--r--runtime/shims/dxgi_com.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/shims/dxgi_com.cpp b/runtime/shims/dxgi_com.cpp
index 71b9d8261..04ed1c68e 100644
--- a/runtime/shims/dxgi_com.cpp
+++ b/runtime/shims/dxgi_com.cpp
@@ -212,7 +212,8 @@ public:
212 : parent_(parent), 212 : parent_(parent),
213 device_(device), 213 device_(device),
214 context_(context), 214 context_(context),
215 swapchain_(gipa, instance, physical, gdpa, context.device(), queue, queue_family, context.submit_mutex()) { 215 swapchain_(gipa, instance, physical, gdpa, context.device(), queue, queue_family, context.submit_mutex(),
216 context.device_fault()) {
216 if (parent_) parent_->AddRef(); 217 if (parent_) parent_->AddRef();
217 if (device_) device_->AddRef(); 218 if (device_) device_->AddRef();
218 } 219 }
@@ -221,6 +222,7 @@ public:
221 unregister_buffers(); 222 unregister_buffers();
222 if (restrict_to_output_) restrict_to_output_->Release(); 223 if (restrict_to_output_) restrict_to_output_->Release();
223 if (waitable_) CloseHandle(waitable_); 224 if (waitable_) CloseHandle(waitable_);
225 swapchain_.close();
224 if (device_) device_->Release(); 226 if (device_) device_->Release();
225 if (parent_) parent_->Release(); 227 if (parent_) parent_->Release();
226 } 228 }