mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 01:05:48 +01:00 
			
		
		
		
	Remove obsolete rendering core init code (#13341)
Also removes duplicate call to shadow render step
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user