summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/BPFunctions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/BPFunctions.cpp')
-rw-r--r--Source/Core/VideoCommon/BPFunctions.cpp12
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: