Fix debug build, fix typo in available texture memory calculation

This commit is contained in:
Brad Davis 2016-09-23 11:16:31 -07:00
parent e6f23d6ffd
commit 5a91116c06
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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);