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:
authorRyderadzeee <craftercrashonname@gmail.com>2026-11-22 19:08:35 +0400
committerRyderadzeee <craftercrashonname@gmail.com>2026-11-22 19:08:35 +0400
commit09857dfa54a8a72db9efb0871e9c17a07e260df7 (patch)
tree3cec84fbec229bddeb89d1ea9929baffaf9810e2 /runtime/shims/dxgi_com.cpp
parent6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff)
Validate DXGI flip-model swapchain sample descriptions
Diffstat (limited to 'runtime/shims/dxgi_com.cpp')
-rw-r--r--runtime/shims/dxgi_com.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/shims/dxgi_com.cpp b/runtime/shims/dxgi_com.cpp
index c4a7530c4..6ba6c8e55 100644
--- a/runtime/shims/dxgi_com.cpp
+++ b/runtime/shims/dxgi_com.cpp
@@ -788,6 +788,7 @@ public:
788 if (!out) return E_POINTER; 788 if (!out) return E_POINTER;
789 *out = nullptr; 789 *out = nullptr;
790 if (!hwnd || !desc) return E_INVALIDARG; 790 if (!hwnd || !desc) return E_INVALIDARG;
791 if (desc->SampleDesc.Count != 1 || desc->SampleDesc.Quality != 0) return DXGI_ERROR_INVALID_CALL;
791 if (!valid_flip_buffer_count(desc->BufferCount)) return DXGI_ERROR_INVALID_CALL; 792 if (!valid_flip_buffer_count(desc->BufferCount)) return DXGI_ERROR_INVALID_CALL;
792 auto* sc = new SwapChain(this, device, context_, gipa_, instance_, physical_, gdpa_, queue_, queue_family_); 793 auto* sc = new SwapChain(this, device, context_, gipa_, instance_, physical_, gdpa_, queue_, queue_family_);
793 if (!sc->init(hwnd, *desc)) { 794 if (!sc->init(hwnd, *desc)) {