Fix shutdown order for GL test context & window

This commit is contained in:
baldurk
2019-09-18 13:30:58 +01:00
parent 9a99696593
commit 35fec3f29e
+1 -1
View File
@@ -66,8 +66,8 @@ void OpenGLGraphicsTest::Shutdown()
for(GLuint p : managedResources.progs)
glDeleteProgram(p);
delete mainWindow;
DestroyContext(mainContext);
delete mainWindow;
}
GLuint OpenGLGraphicsTest::MakeProgram(std::string vertSrc, std::string fragSrc, std::string geomSrc)