Showing the changes to libraries/render-utils/src/TextureCache.cpp (1 of 6 files). Show all
Unified · Split
| @@ -514,7 +514,8 @@ void NetworkTexture::setImage(const QImage& image, bool translucent, const QColo · 513 unmodified lines | ||
| 514 | 514 | |
| 515 | 515 | if ((_width > 0) && (_height > 0)) { |
| 516 | 516 | |
| 517 | − bool isLinearRGB = true; //(_type == NORMAL_TEXTURE) || (_type == EMISSIVE_TEXTURE); | |
| 517 | + // bool isLinearRGB = true; //(_type == NORMAL_TEXTURE) || (_type == EMISSIVE_TEXTURE); | |
| 518 | + bool isLinearRGB = !(_type == CUBE_TEXTURE); //(_type == NORMAL_TEXTURE) || (_type == EMISSIVE_TEXTURE); | |
| 518 | 519 | |
| 519 | 520 | gpu::Element formatGPU = gpu::Element(gpu::VEC3, gpu::UINT8, (isLinearRGB ? gpu::RGB : gpu::SRGB)); |
| 520 | 521 | gpu::Element formatMip = gpu::Element(gpu::VEC3, gpu::UINT8, (isLinearRGB ? gpu::RGB : gpu::SRGB)); |