Hi Wojtek,
I have gone a different route to add the Cmake option, rather than
using Config.in which is for reserved for options that affect the
headers/interface, I have add an option specifically to the Win32
portion of src/osgViewer/CMakeLIsts.txt so that this option is only
provided under Windows, and doesn't affect any other parts of the
build system.
The section looks like:
#
# Enable workaround for OpenGL driver issues when used in
multithreaded/multiscreen with NVidia drivers on Windows XP
# For example: osgviewer dumptruck.osg was showing total garbage
(screen looked like shattered, splashed hedgehog)
# There were also serious issues with render to texture cameras.
# Workaround repeats makeCurrentContext call as it was found that
this causes the problems to dissapear.
#
OPTION(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND "Set
to ON if you have NVidia board and drivers earlier than 177.92 ver"
ON)
MARK_AS_ADVANCED(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND)
IF(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND)
ADD_DEFINITIONS(-DOSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND)
ENDIF(OSG_MULTIMONITOR_MULTITHREAD_WIN32_NVIDIA_WORKAROUND)
I haven't been able to test this out yet, but it's based on other
CMake script that is known to work so baring a copy and paste error it
should work. Note, the default is set to ON for the time being.
Could you test these changes out, I've checked them in to SVN/trunk.
Cheers,
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org