History

Working on texture rendering.

Andrzej Kapolka committed 12 years ago

Commit 416d9ba1 parent 7cf7f1814 files · +473 −104Browse files

Showing the changes to interface/src/renderer/TextureCache.cpp (1 of 14 files). Show all

Unified · Split

interface/src/renderer/TextureCache.cpp+3−4
@@ -179,15 +179,14 @@ public: · 178 unmodified lines
179179 const QByteArray& content;
180180 };
181181
182−QSharedPointer<NetworkTexture> TextureCache::getTexture(const QUrl& url, bool normalMap,
183− bool dilatable, const QByteArray& content) {
182+NetworkTexturePointer TextureCache::getTexture(const QUrl& url, bool normalMap, bool dilatable, const QByteArray& content) {
184183 if (!dilatable) {
185184 TextureExtra extra = { normalMap, content };
186185 return ResourceCache::getResource(url, QUrl(), false, &extra).staticCast<NetworkTexture>();
187186 }
188− QSharedPointer<NetworkTexture> texture = _dilatableNetworkTextures.value(url);
187+ NetworkTexturePointer texture = _dilatableNetworkTextures.value(url);
189188 if (texture.isNull()) {
190− texture = QSharedPointer<NetworkTexture>(new DilatableNetworkTexture(url, content), &Resource::allReferencesCleared);
189+ texture = NetworkTexturePointer(new DilatableNetworkTexture(url, content), &Resource::allReferencesCleared);
191190 texture->setSelf(texture);
192191 texture->setCache(this);
193192 _dilatableNetworkTextures.insert(url, texture);