summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-23 21:01:33 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2023-04-25 09:32:58 +0100
commit267fb0972ea47055925580143289fcd7f8485be9 (patch)
treeeecd6de4c49d9f775db38c5cbedc0a4db55f248e
parentSet vertex normals from AssImp data if available (diff)
downloadilt-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.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;
}