add {glx,egl}2test using the GL2 API in a classic OpenGL context
[gltest.git] / glwindow.cpp
index 2d796391f145ee37166ee018826684024b4ec34f..ca6dbb95018d91fa416360a542fe32edc1c0ac33 100644 (file)
@@ -124,8 +124,6 @@ void GLWindow::exec()
                                        if (strcmp(XGetAtomName(display, event.xclient.message_type), "WM_PROTOCOLS") == 0 &&
                                                strcmp(XGetAtomName(display, event.xclient.data.l[0]), "WM_DELETE_WINDOW") == 0)
                                        {
-                                               XDestroyWindow(display, window);
-                                               window = 0;
                                                return;
                                        }
                                        break;