[osg-users] Please test OpenSceneGraph master in prep for 3.5.6 dev release
Li Chi
s12345uperman at sohu.com
Sat Mar 25 05:33:33 PDT 2017
Hi Osfield,
I make a series of tests, and maybe the cause of the problem is this:
In a c++ program:
#define OSG_GL_FIXED_FUNCTION_AVAILABLE
#if defined(OSG_GL_FIXED_FUNCTION_AVAILABLE) // <== this line returns true
but if you write like the following lines:
#define OSG_GL_FIXED_FUNCTION_AVAILABLE
#define FIXED_FUNCTION defined(OSG_GL_FIXED_FUNCTION_AVAILABLE)
#if !FIXED_FUNCTION // <== this line returns true (wrong)
so, I think '#if defined(...)' or ''#if !defined(...)'' must be used in one line (must be used together), as least MSVC++ is doing so.
Thank you!
Cheers,
Li
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70547#70547
More information about the osg-users
mailing list