From 0b13fd0b010b202340d00d1e004fd1e1daac5dde Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 11 Oct 2025 22:16:09 +0200 Subject: [PATCH] Driver: Change the texture check condition The return value of 'ensureTexture' is unsuited for the texture "". This fixes an undesired side-effect introduced by 9213b7f1. --- src/client/render/pipeline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/render/pipeline.cpp b/src/client/render/pipeline.cpp index cb791fef05..78683f4bd6 100644 --- a/src/client/render/pipeline.cpp +++ b/src/client/render/pipeline.cpp @@ -85,8 +85,8 @@ void TextureBuffer::reset(PipelineContext &context) // change textures to match definitions for (u32 i = 0; i < m_definitions.size(); i++) { video::ITexture **ptr = &m_textures[i]; - - if (!ensureTexture(ptr, m_definitions[i], context)) { + ensureTexture(ptr, m_definitions[i], context); + if (m_definitions[i].valid && !*ptr) { throw ShaderException( fmtgettext("Failed to create the texture \"%s\" for the rendering pipeline.", m_definitions[i].name.c_str()) +