mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-02 10:14:48 +12:00
Merge pull request #73 from skylersaleh/SurfaceCacheRing
[GPU] Add texture surface cache eviction
This commit is contained in:
commit
0647fb5b85
3 changed files with 43 additions and 23 deletions
src/core/renderer_gl
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue