early-access version 3792

This commit is contained in:
pineappleEA
2023-08-05 20:52:55 +02:00
parent 10e28227cd
commit fab0978825
4 changed files with 102 additions and 15 deletions

View File

@@ -73,13 +73,7 @@ protected:
std::array<Shader::Environment*, NUM_PROGRAMS> env_ptrs{};
std::span<Shader::Environment* const> Span() const noexcept {
size_t size{};
for (; size < NUM_PROGRAMS; size++) {
if (!env_ptrs[size]) {
break;
}
}
return std::span(env_ptrs.begin(), size);
return std::span(env_ptrs.begin(), std::ranges::find(env_ptrs, nullptr));
}
};