diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-04-23 21:01:33 +0100 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2023-04-25 09:32:58 +0100 |
commit | 267fb0972ea47055925580143289fcd7f8485be9 (patch) | |
tree | eecd6de4c49d9f775db38c5cbedc0a4db55f248e | |
parent | Set vertex normals from AssImp data if available (diff) | |
download | ilt-267fb0972ea47055925580143289fcd7f8485be9.tar.bz2 ilt-267fb0972ea47055925580143289fcd7f8485be9.tar.xz ilt-267fb0972ea47055925580143289fcd7f8485be9.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.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; } |