History

THese is not final but we have a basic working framework so let's try to share

Sam Gateau committed 11 years ago

Commit ce5295a1 parent 72e01a79 files · +33 −29Browse files

Showing the changes to libraries/render-utils/src/TextureCache.cpp (1 of 9 files). Show all

Unified · Split

libraries/render-utils/src/TextureCache.cpp+1−1
@@ -525,7 +525,7 @@ void NetworkTexture::setImage(const QImage& image, bool translucent, const QColo · 524 unmodified lines
525525
526526 if (_type == CUBE_TEXTURE) {
527527 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)));
529529 _gpuTexture->assignStoredMip(0, formatMip, image.byteCount(), image.constBits());
530530 _gpuTexture->autoGenerateMips(-1);
531531 }