Remove unused vars and debug comments

This commit is contained in:
Henrik Rydgard committed 2017-04-02 20:56:10 +02:00
1 parent c121bb5161
commit 54b16f141d
2 files changed
+1 -5

No files matched your search

-3
View File
@@ -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;
+1 -2
View File
@@ -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<uint32_t, ID3D11RasterizerState *>(keys_.raster.value, rs));
} else {