mirror of https://github.com/axmolengine/axmol.git
GLView::end needs to release self.
This commit is contained in:
parent
cc8738ee94
commit
77a8476c80
|
@ -386,7 +386,8 @@ void GLView::end()
|
||||||
glfwSetWindowShouldClose(_mainWindow,1);
|
glfwSetWindowShouldClose(_mainWindow,1);
|
||||||
_mainWindow = nullptr;
|
_mainWindow = nullptr;
|
||||||
}
|
}
|
||||||
|
// Release self. Otherwise, GLView could not be freed.
|
||||||
|
release();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GLView::swapBuffers()
|
void GLView::swapBuffers()
|
||||||
|
|
Loading…
Reference in New Issue