Remove ErrorCleanup from FRenderer interface

This commit is contained in:
Magnus Norddahl 2017-01-15 02:04:49 +01:00
parent 3093aaadc9
commit 1e7015643d
5 changed files with 1 additions and 9 deletions

View file

@ -961,7 +961,6 @@ void D_ErrorCleanup ()
menuactive = MENU_Off;
}
insave = false;
Renderer->ErrorCleanup();
}
//==========================================================================

View file

@ -53,7 +53,6 @@ struct FRenderer
virtual int GetMaxViewPitch(bool down) = 0; // return value is in plain degrees
virtual void OnModeSet () {}
virtual void ErrorCleanup () {}
virtual void ClearBuffer(int color) = 0;
virtual void Init() = 0;
virtual void SetWindow (int windowSize, int fullWidth, int fullHeight, int stHeight, float trueratio) {}

View file

@ -276,11 +276,6 @@ void FSoftwareRenderer::OnModeSet ()
RenderScene::Instance()->ScreenResized();
}
void FSoftwareRenderer::ErrorCleanup ()
{
Clip3DFloors::Instance()->Cleanup();
}
void FSoftwareRenderer::ClearBuffer(int color)
{
if (!r_swtruecolor)

View file

@ -31,7 +31,6 @@ struct FSoftwareRenderer : public FRenderer
bool RequireGLNodes() override;
void OnModeSet () override;
void ErrorCleanup () override;
void ClearBuffer(int color) override;
void Init() override;
void SetWindow (int windowSize, int fullWidth, int fullHeight, int stHeight, float trueratio) override;

View file

@ -66,7 +66,7 @@ namespace swrenderer
WallScanCycles.Reset();
Clip3DFloors *clip3d = Clip3DFloors::Instance();
clip3d->fakeActive = false; // kg3D - reset fake floor indicator
clip3d->Cleanup();
clip3d->ResetClip(); // reset clips (floor/ceiling)
R_SetupBuffer();