Skip to content

Commit

Permalink
[d3d9] Fix return value for invalid backbuffer formats
Browse files Browse the repository at this point in the history
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
  • Loading branch information
misyltoad committed Dec 17, 2019
1 parent a265af7 commit 3abd30b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d9/d3d9_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6470,7 +6470,7 @@ namespace dxvk {
backBufferFmt,
pPresentationParameters->Windowed)) {
Logger::err("D3D9DeviceEx::ResetSwapChain: Unsupported backbuffer format.");
return D3DERR_NOTAVAILABLE;
return D3DERR_INVALIDCALL;
}
}

Expand Down

0 comments on commit 3abd30b

Please sign in to comment.