We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2afed22 commit d0492caCopy full SHA for d0492ca
Manager/DirectX/DirectX.cpp
@@ -242,6 +242,10 @@ void DirectX::Render()
242
// ((void(*)())RenderFunc)(); // typedef void(*funcName)();
243
244
for (int i = 0; i < DirectX::Windows.size(); i++) {
245
+ if (DirectX::Windows[i]->Opened == false) {
246
+ DirectX::Windows.erase(DirectX::Windows.begin() + i--);
247
+ continue;
248
+ }
249
if (DirectX::Windows[i]->Opened)
250
DirectX::Windows[i]->Render();
251
}
0 commit comments