Fix choice of target backend in TextureCache on OSX

This commit is contained in:
Ryan Huffman 2018-08-09 12:30:42 -07:00
parent 2ba2c4b68a
commit 44a9b1df0e

View file

@ -1173,7 +1173,11 @@ void ImageReader::read() {
gpu::BackendTarget target = gpu::BackendTarget::GLES32;
#else
constexpr bool shouldCompress = false;
#ifdef Q_OS_MAC
gpu::BackendTarget target = gpu::BackendTarget::GL41;
#else
gpu::BackendTarget target = gpu::BackendTarget::GL45;
#endif
#endif
texture = image::processImage(std::move(buffer), _url.toString().toStdString(), _maxNumPixels, networkTexture->getTextureType(), shouldCompress, target);