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:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 10:39:35 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 10:39:35 -0500
commitcd630473451afa3eb322e6f1880da2cb4b138790 (patch)
tree8dc145bb71f627709634ff06da34b9716dafdb2b /runtime/shims/dxgi_com.cpp
parent68cee18fe26fd2ac9cece1e0b4ca08dbc857352b (diff)
parent09857dfa54a8a72db9efb0871e9c17a07e260df7 (diff)
Merge pull request #1940 from Ryderadzeee
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 caf09cee7..47a53f7a2 100644
--- a/runtime/shims/dxgi_com.cpp
+++ b/runtime/shims/dxgi_com.cpp
@@ -781,6 +781,7 @@ public:
781 if (!out) return E_POINTER; 781 if (!out) return E_POINTER;
782 *out = nullptr; 782 *out = nullptr;
783 if (!hwnd || !desc) return E_INVALIDARG; 783 if (!hwnd || !desc) return E_INVALIDARG;
784 if (desc->SampleDesc.Count != 1 || desc->SampleDesc.Quality != 0) return DXGI_ERROR_INVALID_CALL;
784 if (!valid_flip_buffer_count(desc->BufferCount)) return DXGI_ERROR_INVALID_CALL; 785 if (!valid_flip_buffer_count(desc->BufferCount)) return DXGI_ERROR_INVALID_CALL;
785 const VkFormat vk_fmt = dxgi_to_vk_format(desc->Format); 786 const VkFormat vk_fmt = dxgi_to_vk_format(desc->Format);
786 if (vk_fmt == VK_FORMAT_UNDEFINED) return DXGI_ERROR_INVALID_CALL; 787 if (vk_fmt == VK_FORMAT_UNDEFINED) return DXGI_ERROR_INVALID_CALL;