From 2b5f1d174ee4b833ca8e063ecab5c707937e1f17 Mon Sep 17 00:00:00 2001 From: bsp2 Date: Sun, 26 Aug 2018 16:14:16 +0200 Subject: [PATCH] fix: failed assertion when restoring dynamically loaded module patch state --- src/vst2_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/vst2_main.cpp b/src/vst2_main.cpp index 8025a1c3..78c8d5f9 100644 --- a/src/vst2_main.cpp +++ b/src/vst2_main.cpp @@ -891,6 +891,7 @@ public: sUI getProgramChunk(uint8_t**_addr) { setGlobals(); + vst2_set_shared_plugin_tls_globals(); if(NULL != last_program_chunk_str) { ::free(last_program_chunk_str); @@ -912,6 +913,7 @@ public: bool setProgramChunk(size_t _size, uint8_t *_addr) { setGlobals(); lockAudio(); + vst2_set_shared_plugin_tls_globals(); #if 0 Dprintf("xxx vstrack_plugin:setProgramChunk: size=%u\n", _size); #endif