From 54b16f141dde79a5eab7041960b4bf1c56e4c07e Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 2 Apr 2017 20:24:21 +0200 Subject: [PATCH] Remove unused vars and debug comments --- GPU/Common/ShaderUniforms.cpp | 3 --- GPU/D3D11/StateMappingD3D11.cpp | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/GPU/Common/ShaderUniforms.cpp b/GPU/Common/ShaderUniforms.cpp index 3a9af59017..0522d0678e 100644 --- a/GPU/Common/ShaderUniforms.cpp +++ b/GPU/Common/ShaderUniforms.cpp @@ -36,9 +36,6 @@ void ComputeGuardband(float gb[4], float zmin) { // this way and we have space for the NAN in the uniform. // We also assume that everything behind the near clipping plane gets clipped and will thus not in reality // exceed the guardband. This is a bit rough but should be ok. - float offsetX = gstate.getOffsetX(); - float offsetY = gstate.getOffsetY(); - float nearPlane = 0.0; gb[0] = (2048.0f / (vpWidth*0.5f)); gb[1] = (2048.0f / (vpHeight*0.5f)); gb[2] = zmin; diff --git a/GPU/D3D11/StateMappingD3D11.cpp b/GPU/D3D11/StateMappingD3D11.cpp index 01c4655bc8..78a9b5e0ff 100644 --- a/GPU/D3D11/StateMappingD3D11.cpp +++ b/GPU/D3D11/StateMappingD3D11.cpp @@ -427,11 +427,10 @@ void DrawEngineD3D11::ApplyDrawState(int prim) { if (rasterIter == rasterCache_.end()) { D3D11_RASTERIZER_DESC desc{}; desc.CullMode = (D3D11_CULL_MODE)(keys_.raster.cullMode); - // desc.FillMode = gstate.isModeThrough() ? D3D11_FILL_SOLID : D3D11_FILL_WIREFRAME; desc.FillMode = D3D11_FILL_SOLID; desc.ScissorEnable = TRUE; desc.FrontCounterClockwise = TRUE; - desc.DepthClipEnable = TRUE; // FALSE + desc.DepthClipEnable = TRUE; ASSERT_SUCCESS(device_->CreateRasterizerState(&desc, &rs)); rasterCache_.insert(std::pair(keys_.raster.value, rs)); } else {