Skip to content

Commit

Permalink
[d3d11] Force CreateRenderTargetView to return S_OK with D3D11_RESOUR…
Browse files Browse the repository at this point in the history
…CE_DIMENSION_BUFFER (#230)

It makes Battlefield 3 and Battlefield 4 working.
  • Loading branch information
Vesim987 authored and doitsujin committed Mar 31, 2018
1 parent 00a1459 commit a2f0546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/d3d11/d3d11_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2f0546

Please sign in to comment.