Merge pull request from skylersaleh/SurfaceCacheRing

[GPU] Add texture surface cache eviction
This commit is contained in:
wheremyfoodat 2023-07-07 12:45:08 +03:00 committed by GitHub
commit 0647fb5b85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 23 deletions
src/core/renderer_gl

View file

@ -33,10 +33,11 @@ void Texture::setNewConfig(u32 cfg) {
}
void Texture::free() {
valid = false;
valid = false;
if (texture.exists())
Helpers::panic("Make this texture free itself");
if (texture.exists()) {
texture.free();
}
}
u64 Texture::sizeInBytes() {