LFSR icon indicating copy to clipboard operation
LFSR copied to clipboard

Font reference stored across frames

Open cschol opened this issue 2 years ago • 2 comments

The font reference is stored across frames, which crashes the plugin in the VST.

src/Psychtone.cpp
225-    std::shared_ptr<Font> font;
226-
227-    MyModuleDisplay() {
228:            font = APP->window->loadFont(asset::plugin(pluginInstance, "res/fonts/Sudo.ttf"));
229-    }
230-
231-    void draw(const DrawArgs &args) override {

See migration guide.

cschol avatar Feb 26 '22 14:02 cschol

Indeed. I am sorry to have you spend that time. git and github played only a minor role, I own this stupid mistake.

Testing the fix now, THX.

a7

alto777 avatar Feb 27 '22 17:02 alto777

OK, with fingers crossed. Again, sry, I appreciate all the work you do for the amazing thing which is Rack.

FWIW I removed the font stuff after seeing, then remembering, it was part of an attempt to provide some debugging information and should have been removed.

I guess it is progress when I have errors that make me stretch my methods for finding them. :-|

a7

alto777 avatar Feb 28 '22 14:02 alto777