diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2018-03-10 08:22:28 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-10 08:22:28 +0100 |
| commit | a4ef133456a18178f345d3c25195bf74c0e83750 (patch) | |
| tree | 1564aa8e85c3800882466b953984a57be0bf0b0c /Source/Core/VideoCommon/BPFunctions.cpp | |
| parent | 63838c013bde06ed13bfc1b5e24c53594934f641 (diff) | |
| parent | 93ab50c55584c416d32b5bbdf39f37e9c67f4105 (diff) | |
Merge pull request #6399 from stenzek/videocommon-shader-cache
VideoCommon Shader (Pipeline) Cache
Diffstat (limited to 'Source/Core/VideoCommon/BPFunctions.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPFunctions.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp index 0e4551da09..61e4c54b27 100644 --- a/Source/Core/VideoCommon/BPFunctions.cpp +++ b/Source/Core/VideoCommon/BPFunctions.cpp @@ -28,9 +28,7 @@ void FlushPipeline() void SetGenerationMode() { - RasterizationState state = {}; - state.Generate(bpmem, g_vertex_manager->GetCurrentPrimitiveType()); - g_renderer->SetRasterizationState(state); + g_vertex_manager->SetRasterizationStateChanged(); } void SetScissor() @@ -129,16 +127,12 @@ void SetViewport() void SetDepthMode() { - DepthState state = {}; - state.Generate(bpmem); - g_renderer->SetDepthState(state); + g_vertex_manager->SetDepthStateChanged(); } void SetBlendMode() { - BlendingState state = {}; - state.Generate(bpmem); - g_renderer->SetBlendingState(state); + g_vertex_manager->SetBlendingStateChanged(); } /* Explanation of the magic behind ClearScreen: |
