18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-28 05:47:54 +01:00

fix: the review of the renderers PR: physics switches off by default, crashes on exit and at start, renderer, shader and editor fixes

This commit is contained in:
2026-11-27 09:15:11 +01:00
parent bd597146c3
commit 0ce190eab2
85 changed files with 1519 additions and 418 deletions

View File

@@ -589,6 +589,12 @@ std::vector<std::uint32_t> load_shader_binary(shader_source const &Source, std::
std::lock_guard<std::mutex> lock(manifest_mutex);
auto const &manifest{manifest_of(directory)};
auto const entry{manifest.entries.find(name)};
if ((entry == manifest.entries.end()) && Source.has_source)
{
// nothing vouches for the binary, and the source is there to compile from
Reason = name + " isn't in the manifest of " + directory;
return {};
}
if (entry != manifest.entries.end())
{
auto const sourcedir{shader_source_dir(Source.api)};