summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-23 21:01:33 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-23 21:01:33 +0100
commitaf378e83ce0ea1c0c675d451c72e7ff20e42f35e (patch)
tree94bb9415322e587dc2c181cb62a29eb602a708ed
parentAssert the buffer is actually mapped (diff)
downloadilt-af378e83ce0ea1c0c675d451c72e7ff20e42f35e.tar.bz2
ilt-af378e83ce0ea1c0c675d451c72e7ff20e42f35e.tar.xz
ilt-af378e83ce0ea1c0c675d451c72e7ff20e42f35e.zip
Clear world objects explicitly
Otherwise the fail to remove themselves from the VBO after the GL context is destroyed.
-rw-r--r--application/main.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}