Remove obsolete rendering core init code (#13341)

Also removes duplicate call to shadow render step
This commit is contained in:
x2048 2023-03-19 20:22:45 +01:00 committed by GitHub
parent 38e005294f
commit 6fe9bc8ae1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 12 deletions

@ -36,14 +36,6 @@ RenderingCore::~RenderingCore()
delete shadow_renderer;
}
void RenderingCore::initialize()
{
if (shadow_renderer)
pipeline->addStep<RenderShadowMapStep>();
createPipeline();
}
void RenderingCore::draw(video::SColor _skycolor, bool _show_hud, bool _show_minimap,
bool _draw_wield_tool, bool _draw_crosshair)
{

@ -42,8 +42,6 @@ protected:
v2f virtual_size_scale;
v2u32 virtual_size { 0, 0 };
virtual void createPipeline() {}
public:
RenderingCore(IrrlichtDevice *device, Client *client, Hud *hud,
ShadowRenderer *shadow_renderer, RenderPipeline *pipeline,
@ -55,7 +53,6 @@ public:
RenderingCore &operator=(const RenderingCore &) = delete;
RenderingCore &operator=(RenderingCore &&) = delete;
void initialize();
void draw(video::SColor _skycolor, bool _show_hud, bool _show_minimap,
bool _draw_wield_tool, bool _draw_crosshair);

@ -541,7 +541,6 @@ void RenderingEngine::initialize(Client *client, Hud *hud)
{
const std::string &draw_mode = g_settings->get("3d_mode");
core.reset(createRenderingCore(draw_mode, m_device, client, hud));
core->initialize();
}
void RenderingEngine::finalize()