diff --git a/Source/Core/VideoCommon/BPFunctions.cpp b/Source/Core/VideoCommon/BPFunctions.cpp index 1afcb35040..61e4c54b27 100644 --- a/Source/Core/VideoCommon/BPFunctions.cpp +++ b/Source/Core/VideoCommon/BPFunctions.cpp @@ -28,9 +28,6 @@ void FlushPipeline() void SetGenerationMode() { - RasterizationState state = {}; - state.Generate(bpmem, g_vertex_manager->GetCurrentPrimitiveType()); - g_renderer->SetRasterizationState(state); g_vertex_manager->SetRasterizationStateChanged(); } @@ -130,17 +127,11 @@ 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(); } diff --git a/Source/Core/VideoCommon/RenderBase.h b/Source/Core/VideoCommon/RenderBase.h index b906cd2558..e7f7668f22 100644 --- a/Source/Core/VideoCommon/RenderBase.h +++ b/Source/Core/VideoCommon/RenderBase.h @@ -79,10 +79,7 @@ public: }; virtual void SetPipeline(const AbstractPipeline* pipeline) {} - virtual void SetBlendingState(const BlendingState& state) {} virtual void SetScissorRect(const MathUtil::Rectangle& rc) {} - virtual void SetRasterizationState(const RasterizationState& state) {} - virtual void SetDepthState(const DepthState& state) {} virtual void SetTexture(u32 index, const AbstractTexture* texture) {} virtual void SetSamplerState(u32 index, const SamplerState& state) {} virtual void UnbindTexture(const AbstractTexture* texture) {} diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp index 8ccf9865e5..f32ac72b0a 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.cpp +++ b/Source/Core/VideoCommon/VertexManagerBase.cpp @@ -106,9 +106,6 @@ DataReader VertexManagerBase::PrepareForAdditionalData(int primitive, u32 count, // Have to update the rasterization state for point/line cull modes. m_current_primitive_type = new_primitive_type; - RasterizationState raster_state = {}; - raster_state.Generate(bpmem, new_primitive_type); - g_renderer->SetRasterizationState(raster_state); SetRasterizationStateChanged(); }