diff --git a/src/osg/FrameBufferObject.cpp b/src/osg/FrameBufferObject.cpp index 3f2a16423..fc7aed226 100644 --- a/src/osg/FrameBufferObject.cpp +++ b/src/osg/FrameBufferObject.cpp @@ -95,10 +95,8 @@ FBOExtensions::FBOExtensions(unsigned int contextID) LOAD_FBO_EXT(glRenderbufferStorageMultisample); LOAD_FBO_EXT(glRenderbufferStorageMultisampleCoverageNV); - if (isGLExtensionSupported(contextID, "GL_EXT_packed_depth_stencil")) - { - _packed_depth_stencil_supported = true; - } + _packed_depth_stencil_supported = OSG_GL3_FEATURES || + (isGLExtensionSupported(contextID, "GL_EXT_packed_depth_stencil")); }