Renderer: Remove now-redundant Set{Rasterization,Depth,Blending}State

This commit is contained in:
Stenzek 2018-02-26 21:09:33 +10:00
parent fc1fe0672b
commit 41296db083
3 changed files with 0 additions and 15 deletions

View File

@ -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();
}

View File

@ -79,10 +79,7 @@ public:
};
virtual void SetPipeline(const AbstractPipeline* pipeline) {}
virtual void SetBlendingState(const BlendingState& state) {}
virtual void SetScissorRect(const MathUtil::Rectangle<int>& 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) {}

View File

@ -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();
}