Showing the changes to libraries/render-utils/src/TextureCache.cpp (1 of 73 files). Show all
Unified · Split
| @@ -608,7 +608,7 @@ DilatableNetworkTexture::DilatableNetworkTexture(const QUrl& url, const QByteArr · 607 unmodified lines | |||
| 608 | QSharedPointer<Texture> DilatableNetworkTexture::getDilatedTexture(float dilation) { | 608 | QSharedPointer<Texture> DilatableNetworkTexture::getDilatedTexture(float dilation) { |
| 609 | QSharedPointer<Texture> texture = _dilatedTextures.value(dilation); | 609 | QSharedPointer<Texture> texture = _dilatedTextures.value(dilation); |
| 610 | if (texture.isNull()) { | 610 | if (texture.isNull()) { |
| 611 | texture = QSharedPointer<Texture>(new Texture()); | 611 | texture = QSharedPointer<Texture>::create(); |
| 612 | 612 | ||
| 613 | if (!_image.isNull()) { | 613 | if (!_image.isNull()) { |
| 614 | QImage dilatedImage = _image; | 614 | QImage dilatedImage = _image; |