Browse Source

Change the order of subsystem destruction because it crashes AMDVLK

Panagiotis Christopoulos Charitos 7 years ago
parent
commit
8b474c586b
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/anki/core/App.cpp

+ 6 - 6
src/anki/core/App.cpp

@@ -306,12 +306,6 @@ void App::cleanup()
 		m_stagingMem = nullptr;
 	}
 
-	if(m_gr)
-	{
-		GrManager::deleteInstance(m_gr);
-		m_gr = nullptr;
-	}
-
 	if(m_threadpool)
 	{
 		m_heapAlloc.deleteInstance(m_threadpool);
@@ -324,6 +318,12 @@ void App::cleanup()
 		m_threadHive = nullptr;
 	}
 
+	if(m_gr)
+	{
+		GrManager::deleteInstance(m_gr);
+		m_gr = nullptr;
+	}
+
 	if(m_input)
 	{
 		m_heapAlloc.deleteInstance(m_input);