mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 15:09:43 +00:00
Fix files with different defines weren't added to the hot reload manager
This commit is contained in:
parent
a1c8dc9d45
commit
7b78bf4b66
1 changed files with 7 additions and 0 deletions
|
@ -490,6 +490,13 @@ namespace Shader
|
|||
// Append shader source filename for debugging.
|
||||
static unsigned int counter = 0;
|
||||
shader->setName(Misc::StringUtils::format("%u %s", counter++, templateName));
|
||||
|
||||
if (insertedPaths.size() == 0)
|
||||
{
|
||||
int fileNumber = 1;
|
||||
parseIncludes(std::filesystem::path(mPath), shaderSource, templateName, fileNumber, {}, insertedPaths);
|
||||
}
|
||||
|
||||
mHotReloadManager->addShaderFiles(insertedPaths, shader, templateName, defines);
|
||||
|
||||
lock.unlock();
|
||||
|
|
Loading…
Reference in a new issue