From 7c6dbe0ed8481f274d107c3943753a547319e7c5 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 3 Oct 2008 15:36:34 +0000 Subject: [PATCH] Moved the OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION definition into the Config.in rather use of -D define --- CMakeLists.txt | 11 ++++------- src/osg/Config.in | 1 + 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74c958725..78b429788 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -263,6 +263,10 @@ MARK_AS_ADVANCED(OSG_USE_FLOAT_BOUNDINGSPHERE) OPTION(OSG_USE_FLOAT_BOUNDINGBOX "Set to ON to build OpenSceneGraph with float BoundingBox instead of double." ON) MARK_AS_ADVANCED(OSG_USE_FLOAT_BOUNDINGBOX) +# +# 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) ################################################################################ # Set Config file @@ -340,13 +344,6 @@ 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) diff --git a/src/osg/Config.in b/src/osg/Config.in index 5881584f2..48cb92085 100644 --- a/src/osg/Config.in +++ b/src/osg/Config.in @@ -27,5 +27,6 @@ #cmakedefine OSG_USE_FLOAT_PLANE #cmakedefine OSG_USE_FLOAT_BOUNDINGSPHERE #cmakedefine OSG_USE_FLOAT_BOUNDINGBOX +#cmakedefine OSG_USE_REF_PTR_IMPLICIT_OUTPUT_CONVERSION #endif