mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 04:07:11 +02:00
don't always mark _shaderDirty when user data changes unless url actually changes
This commit is contained in:
parent
6da2ea1932
commit
0f988fb209
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