mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-06 00:40:04 +00:00
Fix files with different defines weren't added to the hot reload manager
This commit is contained in:
parent
a1c8dc9d45
commit
7b78bf4b66
@ -490,6 +490,13 @@ namespace Shader
|
|||||||
// Append shader source filename for debugging.
|
// Append shader source filename for debugging.
|
||||||
static unsigned int counter = 0;
|
static unsigned int counter = 0;
|
||||||
shader->setName(Misc::StringUtils::format("%u %s", counter++, templateName));
|
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);
|
mHotReloadManager->addShaderFiles(insertedPaths, shader, templateName, defines);
|
||||||
|
|
||||||
lock.unlock();
|
lock.unlock();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user