From 267fb0972ea47055925580143289fcd7f8485be9 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(+) (limited to 'application') 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