Show
Ignore:
Timestamp:
10/21/09 23:45:55 (4 years ago)
Author:
paulmartz
Message:

Add CMake-controllable option to avoid doing a glBlitFramebuffer into depth to resolve multisampling. This works arouns a hang on OS X with NVIDIA GeForce? 8800 and v1.5.49 drivers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/branches/OpenSceneGraph-2.8.2/src/osgUtil/CMakeLists.txt

    r8211 r10664  
    66    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC) 
    77ENDIF(DYNAMIC_OPENSCENEGRAPH) 
     8 
     9 
     10# 
     11# MSFBO resolve blit to depth buffer control. 
     12# 
     13OPTION(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) 
     14IF(OSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH) 
     15    ADD_DEFINITIONS(-DOSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH) 
     16ENDIF(OSG_MULTISAMPLE_FBO_RESOLVE_IGNORES_DEPTH) 
     17 
    818 
    919SET(LIB_NAME osgUtil)