diff options
Diffstat (limited to 'runtime/shims/dxgi_com.cpp')
| -rw-r--r-- | runtime/shims/dxgi_com.cpp | 1 |
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)) { |