mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-11 00:26:35 +02:00
Merge pull request #8416 from SamGondelman/shaderFix
Don't always mark procedural shaders dirty
This commit is contained in:
commit
4c663b9d18
1 changed files with 5 additions and 0 deletions
|
@ -115,6 +115,11 @@ bool Procedural::parseUrl(const QUrl& shaderUrl) {
|
|||
return false;
|
||||
}
|
||||
|
||||
// If the URL hasn't changed, don't mark the shader as dirty
|
||||
if (_shaderUrl == shaderUrl) {
|
||||
return true;
|
||||
}
|
||||
|
||||
_shaderUrl = shaderUrl;
|
||||
_shaderDirty = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue