mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-23 05:45:51 +12:00
release resources
This commit is contained in:
parent
3431f6d192
commit
23af64ade8
6 changed files with 44 additions and 19 deletions
|
@ -18,7 +18,7 @@ public:
|
|||
DepthStencilCache() = default;
|
||||
|
||||
~DepthStencilCache() {
|
||||
clear();
|
||||
reset();
|
||||
}
|
||||
|
||||
void set(MTL::Device* dev) {
|
||||
|
@ -70,7 +70,7 @@ public:
|
|||
return depthStencilState;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
void reset() {
|
||||
for (auto& pair : depthStencilCache) {
|
||||
pair.second->release();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue