Index: /OpenSceneGraph/branches/OpenSceneGraph-2.8.2/src/osgUtil/RenderStage.cpp
===================================================================
--- /OpenSceneGraph/branches/OpenSceneGraph-2.8.2/src/osgUtil/RenderStage.cpp (revision 10277)
+++ /OpenSceneGraph/branches/OpenSceneGraph-2.8.2/src/osgUtil/RenderStage.cpp (revision 10664)
@@ -880,5 +880,12 @@
             {
             case Camera::DEPTH_BUFFER:
+#ifndef OSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH
+                // This #define is a workaround for an OS X NVIDIA driver bug
+                // confirmed on GeForce 8800 with driver v1.5.49.
+                // If the glBlitFramebuffer mask includes depth, the OS X desktop
+                // will hang. The #define is controlled from CMake and should be
+                // set to ON to enable the workaround and avoid blitting depth.
                 blitMask |= GL_DEPTH_BUFFER_BIT;
+#endif
                 break;
             case Camera::STENCIL_BUFFER:
Index: /OpenSceneGraph/branches/OpenSceneGraph-2.8.2/src/osgUtil/CMakeLists.txt
===================================================================
--- /OpenSceneGraph/branches/OpenSceneGraph-2.8.2/src/osgUtil/CMakeLists.txt (revision 8211)
+++ /OpenSceneGraph/branches/OpenSceneGraph-2.8.2/src/osgUtil/CMakeLists.txt (revision 10664)
@@ -6,4 +6,14 @@
     ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
 ENDIF(DYNAMIC_OPENSCENEGRAPH)
+
+
+#
+# MSFBO resolve blit to depth buffer control.
+#
+OPTION(OSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH "Set to ON to ignore depth when resolving multisampled FBO rendering. This is a workaround for a crash on OS X with NVIDIA driver 1.5.49." OFF)
+IF(OSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH)
+    ADD_DEFINITIONS(-DOSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH)
+ENDIF(OSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH)
+
 
 SET(LIB_NAME osgUtil)
