alto777 / LFSR

Various linear feedback shift register sequencers for VCV Rack
BSD 3-Clause "New" or "Revised" License
18 stars 3 forks source link

Font reference stored across frames #10

Closed cschol closed 1 week ago

cschol commented 2 years ago

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.

alto777 commented 2 years ago

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 commented 2 years ago

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