renderer: skip unsupported primitives (print log)

This commit is contained in:
nmzik
2026-09-07 15:20:09 +04:00
parent e4c10de8b6
commit 6aa6e390ee
@@ -850,7 +850,14 @@ static bool GetDrawTopology(const HW::UserConfig& ucfg, bool auto_draw,
case Prospero::PrimitiveType::kQuadListLegacy:
topology = vk::PrimitiveTopology::eTriangleFan;
break;
default: EXIT("unknown primitive type: %u\n", static_cast<uint32_t>(ucfg.GetPrimType()));
default: {
static std::atomic_bool logged = false;
if (!logged.exchange(true, std::memory_order_relaxed)) {
std::printf("Skipping draw with unknown primitive type: %u\n",
static_cast<uint32_t>(ucfg.GetPrimType()));
}
return false;
}
}
return true;