mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[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
This commit is contained in:
parent
a265af74ed
commit
3abd30bb96
@ -6470,7 +6470,7 @@ namespace dxvk {
|
|||||||
backBufferFmt,
|
backBufferFmt,
|
||||||
pPresentationParameters->Windowed)) {
|
pPresentationParameters->Windowed)) {
|
||||||
Logger::err("D3D9DeviceEx::ResetSwapChain: Unsupported backbuffer format.");
|
Logger::err("D3D9DeviceEx::ResetSwapChain: Unsupported backbuffer format.");
|
||||||
return D3DERR_NOTAVAILABLE;
|
return D3DERR_INVALIDCALL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user