diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-23 21:01:33 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-23 21:01:33 +0100 |
commit | af378e83ce0ea1c0c675d451c72e7ff20e42f35e (patch) | |
tree | 94bb9415322e587dc2c181cb62a29eb602a708ed /application | |
parent | Assert the buffer is actually mapped (diff) | |
download | ilt-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.
Diffstat (limited to 'application')
-rw-r--r-- | application/main.cpp | 1 |
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; } |