[PATCH 2/3] dxgi: Improve d3d12_swapchain_SetColorSpace1 stub.
Philip Rebohle
philip.rebohle at tu-dortmund.de
Thu Apr 16 07:16:45 CDT 2020
Signed-off-by: Philip Rebohle <philip.rebohle at tu-dortmund.de>
---
dlls/dxgi/swapchain.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/dxgi/swapchain.c b/dlls/dxgi/swapchain.c
index 7a680a28e9..c607c71eee 100644
--- a/dlls/dxgi/swapchain.c
+++ b/dlls/dxgi/swapchain.c
@@ -2702,9 +2702,15 @@ static HRESULT STDMETHODCALLTYPE d3d12_swapchain_CheckColorSpaceSupport(IDXGISwa
static HRESULT STDMETHODCALLTYPE d3d12_swapchain_SetColorSpace1(IDXGISwapChain3 *iface,
DXGI_COLOR_SPACE_TYPE colour_space)
{
- FIXME("iface %p, colour_space %#x stub!\n", iface, colour_space);
+ FIXME("iface %p, colour_space %#x semi-stub!\n", iface, colour_space);
- return E_NOTIMPL;
+ if (colour_space != DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709)
+ {
+ WARN("Colour space %u not supported.\n", colour_space);
+ return E_INVALIDARG;
+ }
+
+ return S_OK;
}
static HRESULT STDMETHODCALLTYPE d3d12_swapchain_ResizeBuffers1(IDXGISwapChain3 *iface,
--
2.26.0
More information about the wine-devel
mailing list