1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-18 18:55:29 +02:00

Fix segfault with null video driver (#16579)

This commit is contained in:
Tygyh
2025-10-15 00:20:56 +02:00
committed by GitHub
parent 6ff4a2a3d2
commit 7d4f80f1cc

View File

@@ -216,10 +216,12 @@ void TextureBufferOutput::activate(PipelineContext &context)
if (depth_stencil != NO_DEPTH_TEXTURE)
depth_texture = buffer->getTexture(depth_stencil);
if (render_target) {
render_target->setTexture(textures, depth_texture);
driver->setRenderTargetEx(render_target, m_clear ? video::ECBF_ALL : video::ECBF_NONE, context.clear_color);
driver->OnResize(size);
}
RenderTarget::activate(context);
}