mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 21:35:04 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If the URL hasn't changed, don't mark the shader as dirty
|
||||||
|
if (_shaderUrl == shaderUrl) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
_shaderUrl = shaderUrl;
|
_shaderUrl = shaderUrl;
|
||||||
_shaderDirty = true;
|
_shaderDirty = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue