Hi Laurens,

I have merged Marius' changes and am now attempting to merge yours but
get compile errors when trying to compile GraphicsWindowX11.cpp.  The
errors are pretty basic and look to me like the code path you've
written isn't compiled on your system.  The problem code section is in
GraphicsWindowX11::setSwapGroup(..) :

#if defined(GLX_VERSION_1_1)
    // We need at least GLX 1.1 for glXQueryExtensionsString
    if (major > 1 || (major == 1 && minor > 0 )
    {
        const char *extensions = glXQueryExtensionsString(_display, screen);
        haveNV_swap_group =
osg::isExtensionInExtensionString("GLX_NV_swap_group", extensions);
        osg::setGLExtensionFuncPtr(glXJoinSwapGroupNV,"glXJoinSwapGroupNV");
        osg::setGLExtensionFuncPtr(glXBindSwapBarrierNV,"glXBindSwapBarrierNV");
    }
#endif

I also get compile error with a lack a id member in the _visualInfo structure.

            OSG_NOTICE<<"Notice: Created OpenGL graphics context with
ID " << _visualInfo->id <<std::endl;

I eventually got things to compile, but then found that the
Traits::vsync bool was being check in window creation or on realize
(as is now done in GraphicsWindowWin32::realizeImplementation()), so
added the equivalent calls to
GraphicsWindowX11::realizeImplementation() but now find that nothing
happens, the setSyncToVBlank method just reports that
SyncToVBlank(bool) is not supported.

However, glxinfo reports that the extension is present.  I don't think
GL extension function getters are appropriate for GLX extensions so
perhaps this is the source of the problem.

It rather feels like this submission is half backed.  Was this file
ever compiled and tested?  If so on what type of system?

Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to