I’m trying to get my application to work with both opengl as well as the nice controls juce provides. I have my opengl scene ready, so I decided to try to integrate the ui controls from the helloworld example. To my surprise, the rendering is kind of nuts. For example, the Quit button doesnt render properly, and when hovered or pressed, it renders worse. I added the fillAll line on the paint function to see if it would paint over the opengl code, but to my surprise it renders half a screen diagonally.
void OpenGLCanvas::paint(Graphics& g)
g.fillAll (Colour (0xffc1d0ff));
What am I doing wrong? Is this combination a no-no and I should resort to other frameworks like Cinder or something?