From 3abd30bb963044b43dcef2d75836efde99cc3001 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 17 Dec 2019 22:30:03 +0000 Subject: [PATCH] [d3d9] Fix return value for invalid backbuffer formats This got changed when I saw that the auto depth stencil when set to an unavailable returns D3DERR_NOTAVAILABLE. Turns out if the backbuffer is unavailable it returns D3DERR_INVALIDCALL... Consistent... Closes #1278 --- src/d3d9/d3d9_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d9/d3d9_device.cpp b/src/d3d9/d3d9_device.cpp index 851fde62..18028a62 100644 --- a/src/d3d9/d3d9_device.cpp +++ b/src/d3d9/d3d9_device.cpp @@ -6470,7 +6470,7 @@ namespace dxvk { backBufferFmt, pPresentationParameters->Windowed)) { Logger::err("D3D9DeviceEx::ResetSwapChain: Unsupported backbuffer format."); - return D3DERR_NOTAVAILABLE; + return D3DERR_INVALIDCALL; } }