<setVisible> on <OpenGLComponent>


#1

I got a component A which has a child component B. B has two childs, one component C and one OpenGLComponent D. And I got this code:

void A::mouseUp
( const MouseEvent& e )
{
    b->setVisible(false);
}

On mouse-up, C gets hidden, but D is still visible; <D::renderOpenGL()> is still called. Am I missing something here?


#2

It looks like the openglcomp should be able to deal with that situation ok… What juce version is this?


#3

It’s 1.51. (I checked out the latest working tip of the source tree, too, but that gave me too many compile errors, so I did not try this one.)


#4

I think it might have changed since then… If you move to the tip and still have problems, let me know.


#5

Indeed, it is fixed with the tip.