From 7ab13563ec79b45a09f03da73acb15b39e192df9 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 18 Sep 2021 02:18:53 +0300 Subject: [PATCH] Fix an apparent logic bug in ProgramData Deleting the blocks but leaving the pointers seems like a recipe for disaster. This hails from all the way back in 5ae4b00. --- source/render/programdata.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/render/programdata.cpp b/source/render/programdata.cpp index e8e30e63..915444d8 100644 --- a/source/render/programdata.cpp +++ b/source/render/programdata.cpp @@ -67,6 +67,7 @@ ProgramData &ProgramData::operator=(const ProgramData &other) for(SharedBlock &b: blocks) delete b.block; + blocks.clear(); programs.clear(); last_buffer_block = 0; -- 2.43.0