From: Mikko Rasa Date: Fri, 17 Sep 2021 23:18:53 +0000 (+0300) Subject: Fix an apparent logic bug in ProgramData X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=7ab13563ec79b45a09f03da73acb15b39e192df9 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. --- 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;