Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Tezli committed Apr 8, 2015
1 parent a87f5b9 commit bd16230
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NShadeCore/D3DHelpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ ID3D11ShaderResourceView* D3DHelpers::CreateRandom2DTexture(unsigned int width,

D3D11_SHADER_RESOURCE_VIEW_DESC resourceDesc;
resourceDesc.Format = textureDesc.Format;
resourceDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D;
resourceDesc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2DMS;
resourceDesc.Texture2D.MipLevels = textureDesc.MipLevels;
resourceDesc.Texture2D.MostDetailedMip = 0;

Expand Down
2 changes: 1 addition & 1 deletion NShadeCore/ProcessingStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void ProcessingStep::Finalize(ID3D11Texture2D *source, ID3D11RenderTargetView *t
}
Res::Get()->DeviceContext->PSSetShader(pixelShader->GetShader(), NULL, 0);
}

res = nullptr;
Res::Get()->DeviceContext->OMSetRenderTargets(1, &target, depthStencil);
Res::Get()->DeviceContext->DrawIndexed(indexCount, 0, 0);
}
2 changes: 1 addition & 1 deletion NShadeCore/Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Texture* Texture::Load(ID3D11Texture2D *texture)

D3D11_SHADER_RESOURCE_VIEW_DESC desc;
desc.Format = d.Format;
desc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2D;
desc.ViewDimension = D3D11_SRV_DIMENSION_TEXTURE2DMS;
desc.Texture2D.MipLevels = d.MipLevels;
desc.Texture2D.MostDetailedMip = 0;

Expand Down

0 comments on commit bd16230

Please sign in to comment.