diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 7f1432e142..9a9a994bdd 100644 --- a/src/gl/scene/gl_scene.cpp +++ b/src/gl/scene/gl_scene.cpp @@ -1013,7 +1013,7 @@ struct FGLInterface : public FRenderer bool RequireGLNodes() override; int GetMaxViewPitch(bool down) override; - void ClearBuffer(int color) override; + void SetClearColor(int color) override; void Init() override; }; @@ -1263,7 +1263,7 @@ int FGLInterface::GetMaxViewPitch(bool down) // //=========================================================================== -void FGLInterface::ClearBuffer(int color) +void FGLInterface::SetClearColor(int color) { PalEntry pe = GPalette.BaseColors[color]; GLRenderer->mSceneClearColor[0] = pe.r / 255.f; diff --git a/src/r_renderer.h b/src/r_renderer.h index 54e6d9dacd..9f1e94428e 100644 --- a/src/r_renderer.h +++ b/src/r_renderer.h @@ -53,7 +53,7 @@ struct FRenderer virtual int GetMaxViewPitch(bool down) = 0; // return value is in plain degrees virtual void OnModeSet () {} - virtual void ClearBuffer(int color) = 0; + virtual void SetClearColor(int color) = 0; virtual void Init() = 0; virtual void RenderTextureView (FCanvasTexture *tex, AActor *viewpoint, int fov) = 0; virtual sector_t *FakeFlat(sector_t *sec, sector_t *tempsec, int *floorlightlevel, int *ceilinglightlevel) = 0; diff --git a/src/r_utility.cpp b/src/r_utility.cpp index 34ad10a6e5..025b948043 100644 --- a/src/r_utility.cpp +++ b/src/r_utility.cpp @@ -931,7 +931,7 @@ void R_SetupFrame (AActor *actor) { color = pr_hom(); } - Renderer->ClearBuffer(color); + Renderer->SetClearColor(color); } } diff --git a/src/swrenderer/r_swrenderer.cpp b/src/swrenderer/r_swrenderer.cpp index e64b7f0b75..db0ede2e60 100644 --- a/src/swrenderer/r_swrenderer.cpp +++ b/src/swrenderer/r_swrenderer.cpp @@ -242,7 +242,7 @@ void FSoftwareRenderer::OnModeSet () RenderScene::Instance()->ScreenResized(); } -void FSoftwareRenderer::ClearBuffer(int color) +void FSoftwareRenderer::SetClearColor(int color) { RenderScene::Instance()->SetClearColor(color); } diff --git a/src/swrenderer/r_swrenderer.h b/src/swrenderer/r_swrenderer.h index aedff62146..c4d81c1d08 100644 --- a/src/swrenderer/r_swrenderer.h +++ b/src/swrenderer/r_swrenderer.h @@ -30,7 +30,7 @@ struct FSoftwareRenderer : public FRenderer bool RequireGLNodes() override; void OnModeSet() override; - void ClearBuffer(int color) override; + void SetClearColor(int color) override; void Init() override; void RenderTextureView (FCanvasTexture *tex, AActor *viewpoint, int fov) override; sector_t *FakeFlat(sector_t *sec, sector_t *tempsec, int *floorlightlevel, int *ceilinglightlevel) override;