mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 18:44:00 +02:00
Merge pull request #4405 from birarda/master
manually call delete on GLCanvas in Application dtor
This commit is contained in:
commit
7b6dfc93d6
1 changed files with 5 additions and 2 deletions
|
@ -602,7 +602,10 @@ Application::~Application() {
|
|||
|
||||
_myAvatar = NULL;
|
||||
|
||||
ModelEntityItem::cleanupLoadedAnimations() ;
|
||||
ModelEntityItem::cleanupLoadedAnimations();
|
||||
|
||||
delete _glWidget;
|
||||
_glWidget = NULL;
|
||||
|
||||
DependencyManager::destroy<AnimationCache>();
|
||||
DependencyManager::destroy<TextureCache>();
|
||||
|
@ -614,7 +617,7 @@ Application::~Application() {
|
|||
}
|
||||
|
||||
void Application::initializeGL() {
|
||||
qDebug( "Created Display Window.");
|
||||
qDebug() << "Created Display Window.";
|
||||
|
||||
// initialize glut for shape drawing; Qt apparently initializes it on OS X
|
||||
#ifndef __APPLE__
|
||||
|
|
Loading…
Reference in a new issue