From 5bdea6278c58ea1768df2887dcb036493e30a4b5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 31 Mar 2018 00:33:09 +0200 Subject: [PATCH] - removed RequireGLNodes from FRenderer interface. It returned true for both renderers anyway. --- src/gl/scene/gl_scene.cpp | 6 ------ src/p_setup.cpp | 2 +- src/r_renderer.h | 1 - src/swrenderer/r_swrenderer.cpp | 5 ----- src/swrenderer/r_swrenderer.h | 1 - 5 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 060eaf6a34..9268d6066e 100644 --- a/src/gl/scene/gl_scene.cpp +++ b/src/gl/scene/gl_scene.cpp @@ -1010,7 +1010,6 @@ struct FGLInterface : public FRenderer void RenderTextureView (FCanvasTexture *self, AActor *viewpoint, double fov) override; void PreprocessLevel() override; void CleanLevelData() override; - bool RequireGLNodes() override; int GetMaxViewPitch(bool down) override; void SetClearColor(int color) override; @@ -1178,11 +1177,6 @@ void FGLInterface::CleanLevelData() gl_CleanLevelData(); } -bool FGLInterface::RequireGLNodes() -{ - return true; -} - uint32_t FGLInterface::GetCaps() { // describe our basic feature set diff --git a/src/p_setup.cpp b/src/p_setup.cpp index 648502542a..030ae1cbbc 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -3639,7 +3639,7 @@ void P_SetupLevel (const char *lumpname, int position) // This is motivated as follows: - bool RequireGLNodes = Renderer->RequireGLNodes() || am_textured; + bool RequireGLNodes = true; // Even the software renderer needs GL nodes now. for (i = 0; i < (int)countof(times); ++i) { diff --git a/src/r_renderer.h b/src/r_renderer.h index 54952bc29d..efaa8e9cd4 100644 --- a/src/r_renderer.h +++ b/src/r_renderer.h @@ -52,7 +52,6 @@ struct FRenderer virtual void RenderTextureView (FCanvasTexture *tex, AActor *viewpoint, double fov) = 0; virtual void PreprocessLevel() {} virtual void CleanLevelData() {} - virtual bool RequireGLNodes() { return false; } virtual uint32_t GetCaps() { return 0; } }; diff --git a/src/swrenderer/r_swrenderer.cpp b/src/swrenderer/r_swrenderer.cpp index ae28995dd2..e2c2cefa79 100644 --- a/src/swrenderer/r_swrenderer.cpp +++ b/src/swrenderer/r_swrenderer.cpp @@ -255,11 +255,6 @@ int FSoftwareRenderer::GetMaxViewPitch(bool down) return (r_polyrenderer) ? int(maxviewpitch) : (down ? MAX_DN_ANGLE : ((cl_oldfreelooklimit) ? MAX_UP_ANGLE : MAX_DN_ANGLE)); } -bool FSoftwareRenderer::RequireGLNodes() -{ - return true; -} - void FSoftwareRenderer::OnModeSet () { mScene.ScreenResized(); diff --git a/src/swrenderer/r_swrenderer.h b/src/swrenderer/r_swrenderer.h index 19f75758f5..3fad93d21f 100644 --- a/src/swrenderer/r_swrenderer.h +++ b/src/swrenderer/r_swrenderer.h @@ -25,7 +25,6 @@ struct FSoftwareRenderer : public FRenderer void DrawRemainingPlayerSprites() override; int GetMaxViewPitch(bool down) override; - bool RequireGLNodes() override; void OnModeSet() override; void SetClearColor(int color) override;