Skip to content

Commit

Permalink
D3D11: Specify DepthClipEnable = TRUE when creating rasterizer states…
Browse files Browse the repository at this point in the history
…, required on D3D11_level_9. Fixes the Pursuit Force glitch in #9361
  • Loading branch information
hrydgard committed Mar 5, 2017
1 parent e9f2f82 commit 480a05d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GPU/D3D11/StateMappingD3D11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ void DrawEngineD3D11::ApplyDrawState(int prim) {
desc.FillMode = D3D11_FILL_SOLID;
desc.ScissorEnable = TRUE;
desc.FrontCounterClockwise = TRUE;
desc.DepthClipEnable = TRUE;
device_->CreateRasterizerState(&desc, &rs);
rasterCache_.insert(std::pair<uint32_t, ID3D11RasterizerState *>(keys_.raster.value, rs));
} else {
Expand Down

0 comments on commit 480a05d

Please sign in to comment.