This commit is contained in:
Henrik Rydgård committed 2022-07-11 14:00:26 +02:00
1 parent d2002eab39
commit 415ea50afa
7 files changed
+273 -23

No files matched your search

+1
View File
@@ -68,6 +68,7 @@ bool DataFormatIsDepthStencil(DataFormat fmt) {
bool RefCountedObject::Release() {
_assert_(this != nullptr);
if (refcount_ > 0 && refcount_ < 10000) {
if (--refcount_ == 0) {
delete this;