mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Fix choice of target backend in TextureCache on OSX
This commit is contained in:
parent
2ba2c4b68a
commit
44a9b1df0e
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue