[quote=“bowerymarc”]just downloaded 1.39 and uncommented #define JUCE_OPENGL 1, and when I run the demo and go to the OpenGL demo I get:
Assertion failure: platform_specific_code/juce_linux_Windowing.cpp, 2201
Trace/breakpoint trap
I’m pretty sure I have all the GL stuff I need (Fedora 5):
$ glxinfo | grep OpenGL
OpenGL vendor string: VA Linux Systems Inc.
OpenGL renderer string: Mesa DRI G400 20050609 AGP 1x x86/MMX/SSE2
OpenGL version string: 1.2 Mesa 6.4.2
OpenGL extensions:
$ rpm -q mesa-libGL mesa-libGL-devel mesa-libGLU mesa-libGLU-devel mesa-libGLw-devel mesa-libGLw
mesa-libGL-6.4.2-6.FC5.3
mesa-libGL-devel-6.4.2-6.FC5.3
mesa-libGLU-6.4.2-6.FC5.3
mesa-libGLU-devel-6.4.2-6.FC5.3
mesa-libGLw-devel-6.4.2-6.FC5.3
mesa-libGLw-6.4.2-6.FC5.3
unless I need freeglut-devel too?
… and of course I don’t get any link errors…[/quote]
you have to apply patch to
src/juce_appframework/gui/components/special/juce_OpenGLComponent.cpp
as mentioned above
void initialise()
{
jassert (context == 0);
if (context == 0)
{
context = juce_createOpenGLContext (owner,
sharedContext != 0 ? sharedContext->context
: 0);
if (context != 0)
componentMovedOrResized (true, true);
}
}
and
void componentMovedOrResized (bool /*wasMoved*/, bool /*wasResized*/)
{
if (owner->getWidth() > 0 && owner->getHeight() > 0)
{
Component* const topComp = owner->getTopLevelComponent();
if (topComp->getPeer() != 0)
{
needToUpdateViewport = true;
if (context == 0)
{
if (owner->isShowing())
initialise();
else
return;
}
juce_updateOpenGLWindowPos (context, owner, topComp);
}
}
}