From 05b90497e14e40bf8dd0377ca0a852a97643db63 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 11 Nov 2009 12:04:06 +0000 Subject: [PATCH] From Paul Martz, enabled packed_depth_stencil support for GL3 --- src/osg/FrameBufferObject.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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")); }