mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-29 17:52:18 +01:00
[d3d11] Force CreateRenderTargetView to return S_OK with D3D11_RESOURCE_DIMENSION_BUFFER (#230)
It makes Battlefield 3 and Battlefield 4 working.
This commit is contained in:
parent
00a145906c
commit
a2f05467c7
@ -628,8 +628,8 @@ namespace dxvk {
|
||||
pResource->GetType(&resourceDim);
|
||||
|
||||
if (resourceDim == D3D11_RESOURCE_DIMENSION_BUFFER) {
|
||||
Logger::err("D3D11: Cannot create render target view for a buffer");
|
||||
return E_INVALIDARG;
|
||||
Logger::warn("D3D11: Cannot create render target view for a buffer");
|
||||
return S_OK; // It is required to run Battlefield 3 and Battlefield 4.
|
||||
}
|
||||
|
||||
// The view description is optional. If not defined, it
|
||||
|
Loading…
x
Reference in New Issue
Block a user