210 LDObject::~LDObject () { |
210 LDObject::~LDObject () { |
211 // Remove this object from the selection array if it is there. |
211 // Remove this object from the selection array if it is there. |
212 for (ulong i = 0; i < g_win->sel ().size(); ++i) |
212 for (ulong i = 0; i < g_win->sel ().size(); ++i) |
213 if (g_win->sel ()[i] == this) |
213 if (g_win->sel ()[i] == this) |
214 g_win->sel ().erase (g_win->sel ().begin() + i); |
214 g_win->sel ().erase (g_win->sel ().begin() + i); |
|
215 |
|
216 // Delete the GL lists |
|
217 GL::deleteLists (this); |
215 } |
218 } |
216 |
219 |
217 // ============================================================================= |
220 // ============================================================================= |
218 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
221 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
219 // ============================================================================= |
222 // ============================================================================= |