diff options
| author | NeoBrainX <NeoBrainX@googlemail.com> | 2011-01-25 15:08:30 +0000 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@googlemail.com> | 2011-01-25 15:08:30 +0000 |
| commit | cd6f00a3e58ccb81b94a2d1415da75c212c44389 (patch) | |
| tree | 91fa4339011b0198fb0745a33bfe966249b058ab /Source/Plugins/Plugin_VideoDX11/Src/Render.cpp | |
| parent | 81aebe5e9642fccccd6ed712d80d29ae2d0ddcee (diff) | |
DX11 code maintenance, part 6:
Move constant buffer management from EmuGfxState to Vertex/PixelShaderCache.
Finally remove the EmuGfxState class, cheers!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6915 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX11/Src/Render.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX11/Src/Render.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoDX11/Src/Render.cpp b/Source/Plugins/Plugin_VideoDX11/Src/Render.cpp index f504e2d94b..ea026ed4ee 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/Render.cpp @@ -1233,6 +1233,9 @@ void Renderer::ApplyState(bool bUseDstAlpha) SetLogicOpMode(); } + D3D::context->PSSetConstantBuffers(0, 1, &PixelShaderCache::GetConstantBuffer()); + D3D::context->VSSetConstantBuffers(0, 1, &VertexShaderCache::GetConstantBuffer()); + D3D::context->PSSetShader(PixelShaderCache::GetActiveShader(), NULL, 0); D3D::context->VSSetShader(VertexShaderCache::GetActiveShader(), NULL, 0); } |
