Added #idef guards for SGIX usage

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.4@15070 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2015-08-09 09:40:59 +00:00
parent 559da06ffa
commit 8b4ff0f50a
2 changed files with 8 additions and 4 deletions

View File

@@ -33,12 +33,14 @@ PixelBufferX11::PixelBufferX11(osg::GraphicsContext::Traits* traits)
_initialized(false),
_realized(false),
_useGLX1_3(false),
_useSGIX(false),
_glXCreateGLXPbufferSGIX(NULL),
_useSGIX(false)
#ifdef GLX_SGIX_pbuffer
,_glXCreateGLXPbufferSGIX(NULL),
_glXDestroyGLXPbufferSGIX(NULL),
_glXQueryGLXPbufferSGIX(NULL),
_glXGetFBConfigFromVisualSGIX(NULL)
{
#endif
{
_traits = traits;
init();
@@ -179,7 +181,7 @@ void PixelBufferX11::init()
haveGLX1_3 = true;
}
#if defined(GLX_VERSION_1_1)
#if defined(GLX_VERSION_1_1) && defined(GLX_SGIX_pbuffer)
// We need at least GLX 1.1 for glXQueryExtensionsString
if (!haveGLX1_3 && 1 <= minor)
{