mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-08 03:51:39 +12:00
release resources
This commit is contained in:
parent
3431f6d192
commit
23af64ade8
6 changed files with 44 additions and 19 deletions
|
@ -20,7 +20,7 @@ public:
|
|||
VertexBufferCache() = default;
|
||||
|
||||
~VertexBufferCache() {
|
||||
clear();
|
||||
reset();
|
||||
}
|
||||
|
||||
void set(MTL::Device* dev) {
|
||||
|
@ -57,7 +57,7 @@ public:
|
|||
return BufferHandle{buffer, oldPtr};
|
||||
}
|
||||
|
||||
void clear() {
|
||||
void reset() {
|
||||
endFrame();
|
||||
buffer->release();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue