mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 05:03:52 +02:00
Disable sparse textures on cubemaps
This commit is contained in:
parent
88bbb2faa8
commit
ffbddd2d0f
1 changed files with 6 additions and 0 deletions
|
@ -97,6 +97,12 @@ void SparseInfo::maybeMakeSparse() {
|
|||
qCDebug(gpugl45logging) << "Don't enable sparse texture for explicitly generated mipmaps on texture " << _texture._gpuObject.source().c_str();
|
||||
return;
|
||||
}
|
||||
|
||||
if (GL_TEXTURE_CUBE_MAP == _texture._target) {
|
||||
qCDebug(gpugl45logging) << "Don't enable sparse texture for cubemaps " << _texture._gpuObject.source().c_str();
|
||||
return;
|
||||
}
|
||||
|
||||
const uvec3 dimensions = _texture._gpuObject.getDimensions();
|
||||
auto allowedPageDimensions = getPageDimensionsForFormat(_texture._target, _texture._internalFormat);
|
||||
// In order to enable sparse the texture size must be an integer multiple of the page size
|
||||
|
|
Loading…
Reference in a new issue