examples/Qt/ISFEditor/ISFEditor_app/Spout/SpoutGLDXinterop.cpp
// Switch pbo functions on or off (default is off).
// Cannot over-ride extension availability.
// Will fail silently if extensions are not loaded
// or PBO functions are not supported

Switch pbo functions on or off (default is off).
Cannot over-ride extension availability.
Will fail silently if extensions are not loaded
or PBO functions are not supported
Switch pbo functions on or off ( default is off ) . Cannot over - ride extension availability . Will fail silently if extensions are not loaded or PBO functions are not supported
void spoutGLDXinterop::SetBufferMode(bool bActive)
{
	if(!m_bExtensionsLoaded) m_bExtensionsLoaded = LoadGLextensions();
	if(m_bExtensionsLoaded) {
		if(bActive) {
			if(m_caps & GLEXT_SUPPORT_PBO) {
				m_bPBOavailable = true;
			}
		}
		else {
			m_bPBOavailable = false;
		}
	}
	spoutdx.WriteDwordToRegistry((DWORD)m_bPBOavailable, "Software\\Leading Edge\\Spout", "Buffering");
}
void spoutGLDXinterop :: SetBufferMode ( bool bActive ) { if ( ! m_bExtensionsLoaded ) m_bExtensionsLoaded = LoadGLextensions ( ) ; if ( m_bExtensionsLoaded ) { if ( bActive ) { if ( m_caps & GLEXT_SUPPORT_PBO ) { m_bPBOavailable = true ; } } else { m_bPBOavailable = false ; } } spoutdx . WriteDwordToRegistry ( ( DWORD ) m_bPBOavailable , " \\ \\ " , " " ) ; }
Switch pbo functions on or off (default is off).
Switch pbo functions on or off ( default is off ) .
// Write to the registry now - this function is called by the SpoutDirectX utility when it starts
