From 13d0292f295fc3915af809836cdbd95fbdb938fa Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 3 Oct 2008 15:15:04 +0000 Subject: [PATCH] Added optional compile of the new ref_ptr<>:T* operator() output conversion operator, controlled via a CMake option OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION. --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e6af6b6f..74c958725 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -340,6 +340,15 @@ IF(PKG_CONFIG_FOUND) ENDIF(PKG_CONFIG_FOUND) +# +# Enable workaround for OpenGL driver crash with occlusion query +# +OPTION(OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION "Set to ON to use the ref_ptr<> T* operator() output conversion. " ON) +IF(OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION) + ADD_DEFINITIONS(-DOSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION) +ENDIF(OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION) + + # # Enable workaround for OpenGL driver crash with occlusion query