17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-11 04:16:37 +01:00

fix: the bugs and vulnerabilities SonarCloud reports on PR #216

This commit is contained in:
2026-11-07 22:11:08 +01:00
parent 8e85def98f
commit 7667e5b2ec
65 changed files with 910 additions and 121 deletions

View File

@@ -665,7 +665,8 @@ void vulkan14_renderer::render_instances_indirect()
// the draws, recorded while the gpu culls
record_indirect_draws(cull, false);
auto const twophase{cull.two_phase()};
// two phases only with the occlusion test, which needs the targets
auto const twophase{useocclusion && cull.two_phase()};
auto const draws{false == m_indirectdraws.empty()};
// the depth comes first in the depth pass of the whole scene, which leaves the colour to the colour pass, and with the depth
// prepass of the instances