mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 21:33:48 +02:00
Fix NetworkTexture build errors on osx/linux
This commit is contained in:
parent
b2ff0a711e
commit
790290f40c
2 changed files with 4 additions and 4 deletions
|
@ -411,7 +411,7 @@ void NetworkTexture::startRequestForNextMipLevel() {
|
|||
setLoadPriority(this, -_originalKtxDescriptor->header.numberOfMipmapLevels + _lowestKnownPopulatedMip);
|
||||
|
||||
init();
|
||||
ResourceCache::attemptRequest(_self);
|
||||
TextureCache::attemptRequest(_self);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -471,7 +471,7 @@ void NetworkTexture::ktxMipRequestFinished() {
|
|||
}
|
||||
else if (_ktxResourceState == REQUESTING_MIP) {
|
||||
Q_ASSERT(_ktxMipLevelRangeInFlight.first != NULL_MIP_LEVEL);
|
||||
ResourceCache::requestCompleted(_self);
|
||||
TextureCache::requestCompleted(_self);
|
||||
|
||||
if (_ktxMipRequest->getResult() == ResourceRequest::Success) {
|
||||
Q_ASSERT(_ktxMipLevelRangeInFlight.second - _ktxMipLevelRangeInFlight.first == 0);
|
||||
|
@ -519,7 +519,7 @@ void NetworkTexture::maybeHandleFinishedInitialLoad() {
|
|||
|
||||
if (_ktxHeaderRequestFinished && _ktxHighMipRequestFinished) {
|
||||
|
||||
ResourceCache::requestCompleted(_self);
|
||||
TextureCache::requestCompleted(_self);
|
||||
|
||||
if (_ktxHeaderRequest->getResult() != ResourceRequest::Success || _ktxMipRequest->getResult() != ResourceRequest::Success) {
|
||||
if (handleFailedRequest(_ktxMipRequest->getResult())) {
|
||||
|
|
|
@ -46,7 +46,7 @@ class NetworkTexture : public Resource, public Texture, public gpu::Texture::Mip
|
|||
|
||||
public:
|
||||
NetworkTexture(const QUrl& url, image::TextureUsage::Type type, const QByteArray& content, int maxNumPixels);
|
||||
NetworkTexture::~NetworkTexture() override;
|
||||
~NetworkTexture() override;
|
||||
|
||||
QString getType() const override { return "NetworkTexture"; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue