1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

OpenGL: Ensure a VAO is bound before calling user render callback

This commit is contained in:
reuk 2023-08-01 13:41:16 +01:00
parent e4b8569b12
commit 17deafbb0d
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
2 changed files with 3 additions and 4 deletions

View file

@ -763,6 +763,7 @@ public:
controlsOverlay.reset (new DemoControlsOverlay (*this));
addAndMakeVisible (controlsOverlay.get());
openGLContext.setOpenGLVersionRequired (OpenGLContext::openGL3_2);
openGLContext.setRenderer (this);
openGLContext.attachTo (*this);
openGLContext.setContinuousRepainting (true);