Brilliant, thanks man! I have found a slight problem associated with a scaling of 1.5 which is what I use as a Windows 10 default setting.
In your GL demo app it sets a viewport in Render() with a variable ‘scale’ that’s set to 1.5, but I only get a scale of 1.0 in my plug which makes the GL window (the teapot) shift to the bottom left. This is using the exact same code as the demo.
I think it’s because the context’s referenced peer() is my plug-in’s context rather than the main window? I’ll have to edit or copy the Juce code to fix it if it’s true. Is that the cause?
I can do without the viewport call, which will make it work as normal, but it would be nice to make it the correct area.