Fix initial GL state for some systems

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-10-22 12:24:47 +02:00
parent 3a88af1112
commit 673279a8bf
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
2 changed files with 6 additions and 2 deletions

View file

@ -431,6 +431,10 @@ public:
setSize(DISTRHO_UI_DEFAULT_WIDTH * scaleFactor, DISTRHO_UI_DEFAULT_HEIGHT * scaleFactor);
}
#if DISTRHO_PLUGIN_WANT_DIRECT_ACCESS
const DGL_NAMESPACE::Window::ScopedGraphicsContext sgc(window);
#endif
rack::window::WindowSetPluginUI(context->window, this);
// hide "Browse VCV Library" button