mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 11:45:36 +02:00
commit
d2046c0685
2 changed files with 5 additions and 4 deletions
|
@ -56,12 +56,12 @@ public:
|
|||
glm::vec4 _borderColor{ 1.0f };
|
||||
uint32 _maxAnisotropy = 16;
|
||||
|
||||
uint8 _filter = FILTER_MIN_MAG_POINT;
|
||||
uint8 _comparisonFunc = ALWAYS;
|
||||
|
||||
uint8 _wrapModeU = WRAP_REPEAT;
|
||||
uint8 _wrapModeV = WRAP_REPEAT;
|
||||
uint8 _wrapModeW = WRAP_REPEAT;
|
||||
|
||||
uint8 _filter = FILTER_MIN_MAG_POINT;
|
||||
uint8 _comparisonFunc = ALWAYS;
|
||||
|
||||
uint8 _mipOffset = 0;
|
||||
uint8 _minMip = 0;
|
||||
|
|
|
@ -241,7 +241,7 @@ float Resource::getLoadPriority() {
|
|||
}
|
||||
|
||||
void Resource::refresh() {
|
||||
if (_reply == nullptr && !(_loaded || _failedToLoad)) {
|
||||
if (_reply && !(_loaded || _failedToLoad)) {
|
||||
return;
|
||||
}
|
||||
if (_reply) {
|
||||
|
@ -351,6 +351,7 @@ void Resource::maybeRefresh() {
|
|||
QDateTime lastModifiedOld = metaData.lastModified();
|
||||
if (lastModified.isValid() && lastModifiedOld.isValid() &&
|
||||
lastModifiedOld == lastModified) {
|
||||
qCDebug(networking) << "Using cached version of" << _url.fileName();
|
||||
// We don't need to update, return
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue