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 3788266 commit edb725eCopy full SHA for edb725e
src/Output/gemglutwindow.cpp
@@ -407,15 +407,15 @@ void gemglutwindow :: destroy(void)
407
void gemglutwindow :: destroyMess(void)
408
{
409
if(makeCurrent()) {
410
- s_windowmap.erase(m_window);
411
-
412
int window=m_window;
413
m_window=0; // so that we no longer receive any event
414
glutCloseFunc (NULL);
415
glutDestroyWindow(window);
416
glutMainLoopEvent();
417
418
+ /* now that the window is destroyed, remove it from the list of available windows */
+ s_windowmap.erase(window);
419
}
420
destroy();
421
0 commit comments