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:
@@ -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)};
|
||||
|
||||
Reference in New Issue
Block a user