1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Fix regression which prevents using texture array uniforms

This commit is contained in:
Yuri Roubinsky
2021-10-06 22:07:50 +03:00
parent 98b81ad35c
commit b5028da5c0
2 changed files with 13 additions and 12 deletions

View File

@@ -2715,8 +2715,7 @@ void RendererStorageRD::MaterialData::update_textures(const Map<StringName, Vari
p_textures[k++] = rd_texture;
}
} else {
p_textures[k] = rd_texture;
++k;
p_textures[k++] = rd_texture;
}
} else {
bool srgb = p_use_linear_color && (p_texture_uniforms[i].hint == ShaderLanguage::ShaderNode::Uniform::HINT_ALBEDO || p_texture_uniforms[i].hint == ShaderLanguage::ShaderNode::Uniform::HINT_BLACK_ALBEDO);