mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 23:32:04 +00:00
Remove ErrorCleanup from FRenderer interface
This commit is contained in:
parent
3093aaadc9
commit
1e7015643d
5 changed files with 1 additions and 9 deletions
|
@ -961,7 +961,6 @@ void D_ErrorCleanup ()
|
||||||
menuactive = MENU_Off;
|
menuactive = MENU_Off;
|
||||||
}
|
}
|
||||||
insave = false;
|
insave = false;
|
||||||
Renderer->ErrorCleanup();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
|
|
|
@ -53,7 +53,6 @@ struct FRenderer
|
||||||
virtual int GetMaxViewPitch(bool down) = 0; // return value is in plain degrees
|
virtual int GetMaxViewPitch(bool down) = 0; // return value is in plain degrees
|
||||||
|
|
||||||
virtual void OnModeSet () {}
|
virtual void OnModeSet () {}
|
||||||
virtual void ErrorCleanup () {}
|
|
||||||
virtual void ClearBuffer(int color) = 0;
|
virtual void ClearBuffer(int color) = 0;
|
||||||
virtual void Init() = 0;
|
virtual void Init() = 0;
|
||||||
virtual void SetWindow (int windowSize, int fullWidth, int fullHeight, int stHeight, float trueratio) {}
|
virtual void SetWindow (int windowSize, int fullWidth, int fullHeight, int stHeight, float trueratio) {}
|
||||||
|
|
|
@ -276,11 +276,6 @@ void FSoftwareRenderer::OnModeSet ()
|
||||||
RenderScene::Instance()->ScreenResized();
|
RenderScene::Instance()->ScreenResized();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FSoftwareRenderer::ErrorCleanup ()
|
|
||||||
{
|
|
||||||
Clip3DFloors::Instance()->Cleanup();
|
|
||||||
}
|
|
||||||
|
|
||||||
void FSoftwareRenderer::ClearBuffer(int color)
|
void FSoftwareRenderer::ClearBuffer(int color)
|
||||||
{
|
{
|
||||||
if (!r_swtruecolor)
|
if (!r_swtruecolor)
|
||||||
|
|
|
@ -31,7 +31,6 @@ struct FSoftwareRenderer : public FRenderer
|
||||||
bool RequireGLNodes() override;
|
bool RequireGLNodes() override;
|
||||||
|
|
||||||
void OnModeSet () override;
|
void OnModeSet () override;
|
||||||
void ErrorCleanup () override;
|
|
||||||
void ClearBuffer(int color) override;
|
void ClearBuffer(int color) override;
|
||||||
void Init() override;
|
void Init() override;
|
||||||
void SetWindow (int windowSize, int fullWidth, int fullHeight, int stHeight, float trueratio) override;
|
void SetWindow (int windowSize, int fullWidth, int fullHeight, int stHeight, float trueratio) override;
|
||||||
|
|
|
@ -66,7 +66,7 @@ namespace swrenderer
|
||||||
WallScanCycles.Reset();
|
WallScanCycles.Reset();
|
||||||
|
|
||||||
Clip3DFloors *clip3d = Clip3DFloors::Instance();
|
Clip3DFloors *clip3d = Clip3DFloors::Instance();
|
||||||
clip3d->fakeActive = false; // kg3D - reset fake floor indicator
|
clip3d->Cleanup();
|
||||||
clip3d->ResetClip(); // reset clips (floor/ceiling)
|
clip3d->ResetClip(); // reset clips (floor/ceiling)
|
||||||
|
|
||||||
R_SetupBuffer();
|
R_SetupBuffer();
|
||||||
|
|
Loading…
Reference in a new issue