| 181 | } |
| 182 | |
| 183 | void WindowBase::OnDeleteObject() |
| 184 | { |
| 185 | // Dereference window |
| 186 | #if !USE_EDITOR |
| 187 | if (RenderTask && RenderTask == MainRenderTask::Instance) |
| 188 | { |
| 189 | MainRenderTask::Instance->SwapChain = nullptr; |
| 190 | RenderTask = nullptr; |
| 191 | } |
| 192 | #endif |
| 193 | |
| 194 | // Release resources |
| 195 | SAFE_DELETE(RenderTask); |
| 196 | SAFE_DELETE(_swapChain); |
| 197 | |
| 198 | // Base |
| 199 | ScriptingObject::OnDeleteObject(); |
| 200 | } |
| 201 | |
| 202 | bool WindowBase::GetRenderingEnabled() const |
| 203 | { |
nothing calls this directly
no test coverage detected