Debug what destructors are called

This commit is contained in:
Alex
2023-02-14 03:53:09 +02:00
parent 47a10df568
commit 5257ff662f
11 changed files with 22 additions and 14 deletions

View File

@ -311,7 +311,11 @@ namespace Video
Display::~Display()
{
for (int i = 0; i < 16; i++)
DeleteBuffer(i);
debug("Destructor called");
this->ClearBuffer(0);
this->SetBuffer(0);
for (size_t i = 0; i < sizeof(this->Buffers) / sizeof(this->Buffers[0]); i++)
this->DeleteBuffer(i);
}
}