mirror of
https://github.com/lubosz/overte.git
synced 2025-04-09 06:04:42 +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
|
||||
// FIXME overly conservative?
|
||||
availableTextureMemory = (totalGpuMemory > 2);
|
||||
availableTextureMemory = (totalGpuMemory >> 1);
|
||||
}
|
||||
|
||||
// Return the consumed texture memory divided by the available texture memory.
|
||||
|
|
|
@ -517,8 +517,8 @@ void GL45Texture::updateMips() {
|
|||
}
|
||||
|
||||
void GL45Texture::derez() {
|
||||
assert(_sparseInfo._sparse);
|
||||
assert(_minMip < _sparseInfo._maxSparseLevel);
|
||||
assert(_sparseInfo.sparse);
|
||||
assert(_minMip < _sparseInfo.maxSparseLevel);
|
||||
assert(_minMip < _maxMip);
|
||||
assert(_transferrable);
|
||||
stripToMip(_minMip + 1);
|
||||
|
|
Loading…
Reference in a new issue