From af378e83ce0ea1c0c675d451c72e7ff20e42f35e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 23 Apr 2023 21:01:33 +0100 Subject: Clear world objects explicitly Otherwise the fail to remove themselves from the VBO after the GL context is destroyed. --- application/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/application/main.cpp b/application/main.cpp index 9feb80b..177c795 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -99,6 +99,7 @@ public: t_start = t_end; } + world.objects.clear(); return 0; } -- cgit v1.2.3