void TargetMapWindow::OnDestroy() { SetTerrain(nullptr); SetTopograpgy(nullptr); SetAirspaces(nullptr); SetWaypoints(nullptr); #ifndef ENABLE_OPENGL buffer_canvas.Destroy(); #endif BufferWindow::OnDestroy(); }
bool TargetMapWindow::on_destroy() { SetTerrain(NULL); SetTopograpgy(NULL); SetAirspaces(NULL); SetWaypoints(NULL); #ifndef ENABLE_OPENGL buffer_canvas.reset(); stencil_canvas.reset(); #endif BufferWindow::on_destroy(); return true; }
void TargetMapWindow::on_destroy() { SetTerrain(NULL); SetTopograpgy(NULL); SetAirspaces(NULL); SetWaypoints(NULL); #ifndef ENABLE_OPENGL buffer_canvas.reset(); if (!IsAncientHardware()) stencil_canvas.reset(); #endif BufferWindow::on_destroy(); }