Fix QWindow::destroy

(cherry picked from commit 00cd7aa93f916772b22c6137293c7127fe5a33b8)
bb10
Jørgen Lind 2011-04-27 12:11:58 +02:00 committed by Samuel Rødal
parent dc897ca7d9
commit dd34255948
1 changed files with 5 additions and 5 deletions

View File

@ -353,13 +353,13 @@ QWindowFormat QWindow::format() const
void QWindow::destroy()
{
Q_D(QWindow);
//JA, this will be solved later....
// if (QGLContext *context = extra->topextra->window->glContext()) {
// context->deleteQGLContext();
Q_ASSERT(false);
if (d->glContext) {
d->glContext->deleteQGLContext();
}
delete d->glContext;
d->glContext = 0;
// }
delete d->platformWindow;
d->platformWindow = 0;
}
QPlatformWindow *QWindow::handle() const