Showing the changes to libraries/render-utils/src/TextureCache.cpp (1 of 9 files). Show all
Unified · Split
| @@ -525,7 +525,7 @@ void NetworkTexture::setImage(const QImage& image, bool translucent, const QColo · 524 unmodified lines | |||
| 525 | 525 | ||
| 526 | if (_type == CUBE_TEXTURE) { | 526 | if (_type == CUBE_TEXTURE) { |
| 527 | if (_height >= (6 * _width)) { | 527 | if (_height >= (6 * _width)) { |
| 528 | _gpuTexture = gpu::TexturePointer(gpu::Texture::createCube(formatGPU, image.width(), gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_POINT, gpu::Sampler::WRAP_CLAMP))); | 528 | _gpuTexture = gpu::TexturePointer(gpu::Texture::createCube(formatGPU, image.width(), gpu::Sampler(gpu::Sampler::FILTER_MIN_MAG_LINEAR, gpu::Sampler::WRAP_CLAMP))); |
| 529 | _gpuTexture->assignStoredMip(0, formatMip, image.byteCount(), image.constBits()); | 529 | _gpuTexture->assignStoredMip(0, formatMip, image.byteCount(), image.constBits()); |
| 530 | _gpuTexture->autoGenerateMips(-1); | 530 | _gpuTexture->autoGenerateMips(-1); |
| 531 | } | 531 | } |