to notify globjects and glbinding of the switch. But in source/globjects/source/globjects.cpp#L177 it looks like globjects::setContext(glbinding::ContextHandle handle) calls glbinding::Binding::useContext(glbinding::ContextHandle handle) internally, causing an infinite call chain and a stack overflow.
Just removing the section is probably enough to fix this, but it would be nice if it also explicitly states that the init, setContext and setCurrentContext globject functions also internally calls the glbinding equivalents.
In the Initialize Contexts section of the documentation it states you can sync OpenGL contexts using glbinding by doing:
And then do
to notify globjects and glbinding of the switch. But in source/globjects/source/globjects.cpp#L177 it looks like
globjects::setContext(glbinding::ContextHandle handle)
callsglbinding::Binding::useContext(glbinding::ContextHandle handle)
internally, causing an infinite call chain and a stack overflow.Just removing the section is probably enough to fix this, but it would be nice if it also explicitly states that the
init
,setContext
andsetCurrentContext
globject functions also internally calls the glbinding equivalents.