1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 00:32:49 +00:00

Fix files with different defines weren't added to the hot reload manager

This commit is contained in:
florent.teppe 2022-08-04 12:46:39 +02:00
parent a1c8dc9d45
commit 7b78bf4b66

View File

@ -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();