Переглянути джерело

Change the order of subsystem destruction because it crashes AMDVLK

Panagiotis Christopoulos Charitos 7 роки тому
батько
коміт
8b474c586b
1 змінених файлів з 6 додано та 6 видалено
  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;
 		m_stagingMem = nullptr;
 	}
 	}
 
 
-	if(m_gr)
-	{
-		GrManager::deleteInstance(m_gr);
-		m_gr = nullptr;
-	}
-
 	if(m_threadpool)
 	if(m_threadpool)
 	{
 	{
 		m_heapAlloc.deleteInstance(m_threadpool);
 		m_heapAlloc.deleteInstance(m_threadpool);
@@ -324,6 +318,12 @@ void App::cleanup()
 		m_threadHive = nullptr;
 		m_threadHive = nullptr;
 	}
 	}
 
 
+	if(m_gr)
+	{
+		GrManager::deleteInstance(m_gr);
+		m_gr = nullptr;
+	}
+
 	if(m_input)
 	if(m_input)
 	{
 	{
 		m_heapAlloc.deleteInstance(m_input);
 		m_heapAlloc.deleteInstance(m_input);