JuceDemo bug!


#1

Hi,

I modified the JuceDemo such that when it is run it starts showing the OpenGL demo by replacing “demos( 3 )” with “demos( 8 )” in line 111 (MainDemoWindow.cpp); this fails showing the rotating 3D cube.

Does anyone know how to fix this?

Thomas


#2

Hmm. Looks like it doesn’t get initialised properly if the window only becomes visible when the opengl component has already been added to it.

Easy fix though - change line 176 of juce_OpenGLComponent.cpp to this:

if (topComp != lastTopLevelComp || context == 0)

and it should work ok.


#3

[quote=“jules”]Hmm. Looks like it doesn’t get initialised properly if the window only becomes visible when the opengl component has already been added to it.

Easy fix though - change line 176 of juce_OpenGLComponent.cpp to this:

if (topComp != lastTopLevelComp || context == 0)

and it should work ok.[/quote]

That indeed did fix the problem!

thx
Thomas


#4