diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:12:48 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:12:48 -0500 |
| commit | cb32d2d9420a00ca84b6fd600856b19c2602f7c9 (patch) | |
| tree | 19bab7ad97f3d29f3a85e919d636bd81cb5aaf75 /runtime/shims/dxgi_com.cpp | |
| parent | 82a9bf392bf8389947e7e44880d3030232946a6b (diff) | |
| parent | 4f4cc860ad4d13322bb2b2670464a237dd357a42 (diff) | |
Merge pull request #2876 from Ryderadzeee
Diffstat (limited to 'runtime/shims/dxgi_com.cpp')
| -rw-r--r-- | runtime/shims/dxgi_com.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/shims/dxgi_com.cpp b/runtime/shims/dxgi_com.cpp index 2f671d78e..6c20e1504 100644 --- a/runtime/shims/dxgi_com.cpp +++ b/runtime/shims/dxgi_com.cpp | |||
| @@ -211,7 +211,7 @@ public: | |||
| 211 | HRESULT STDMETHODCALLTYPE GetBuffer(UINT buffer, REFIID riid, void** surface) override { | 211 | HRESULT STDMETHODCALLTYPE GetBuffer(UINT buffer, REFIID riid, void** surface) override { |
| 212 | if (!surface) return E_POINTER; | 212 | if (!surface) return E_POINTER; |
| 213 | *surface = nullptr; | 213 | *surface = nullptr; |
| 214 | if (buffer >= buffers_.size()) return E_INVALIDARG; | 214 | if (buffer >= buffers_.size()) return DXGI_ERROR_INVALID_CALL; |
| 215 | return buffers_[buffer]->QueryInterface(riid, surface); | 215 | return buffers_[buffer]->QueryInterface(riid, surface); |
| 216 | } | 216 | } |
| 217 | 217 | ||