mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 08:21:24 +02:00
Fix debug build, fix typo in available texture memory calculation
This commit is contained in:
parent
e6f23d6ffd
commit
5a91116c06
2 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ float GLTexture::getMemoryPressure() {
|
||||||
|
|
||||||
// Allow 50% of all available GPU memory to be consumed by textures
|
// Allow 50% of all available GPU memory to be consumed by textures
|
||||||
// FIXME overly conservative?
|
// FIXME overly conservative?
|
||||||
availableTextureMemory = (totalGpuMemory > 2);
|
availableTextureMemory = (totalGpuMemory >> 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the consumed texture memory divided by the available texture memory.
|
// Return the consumed texture memory divided by the available texture memory.
|
||||||
|
|
|
@ -517,8 +517,8 @@ void GL45Texture::updateMips() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GL45Texture::derez() {
|
void GL45Texture::derez() {
|
||||||
assert(_sparseInfo._sparse);
|
assert(_sparseInfo.sparse);
|
||||||
assert(_minMip < _sparseInfo._maxSparseLevel);
|
assert(_minMip < _sparseInfo.maxSparseLevel);
|
||||||
assert(_minMip < _maxMip);
|
assert(_minMip < _maxMip);
|
||||||
assert(_transferrable);
|
assert(_transferrable);
|
||||||
stripToMip(_minMip + 1);
|
stripToMip(_minMip + 1);
|
||||||
|
|
Loading…
Reference in a new issue