OpenGL in VST problems


#1

Hello,

 

I use OpenGL in my vst plugin to visualise some data. I have the general set up working but there are some OpenGL related functions that rely on Component.getPeer() not returning nullptr. The problem is that this is what happens.

I ran into two specific problems:

  • OpenGLContext::CachedImage::isShowingOrMinized always returns false due to this.
  • Component::ComponentHelpers::convertToParentSpace has an assertion inside to handle this case.

Is there a good solution to this? Should getPeer() return the host window then?

I am using JUCE 4.0.2.

 

Thanks in advance
Dan


#2

What platform / compiler?

{Not that I can help - but whoever can will need to know}