[2.2] compile error with OGRE_ENABLE_LIGHT_OBB_RESTRAINT=0

Discussion area about developing with Ogre2 branches (2.1, 2.2 and beyond)
Post Reply
rujialiu
Goblin
Posts: 224
Joined: Mon May 09, 2016 8:21 am
x 20

[2.2] compile error with OGRE_ENABLE_LIGHT_OBB_RESTRAINT=0

Post by rujialiu » Wed Mar 13, 2019 5:58 am

Hi!

At the end of function fillObbRestraint, #endif needs to move a little bit, otherwise we'll get compile error 8-)

Code: Select all

#if OGRE_ENABLE_LIGHT_OBB_RESTRAINT
    inline float* fillObbRestraint( const Light *light, const Matrix4 &viewMatrix, float *passBufferPtr )
    {
...
        return passBufferPtr;
#endif

} // line 1093, should also be wrapped inside #if/#endif pair
0 x

Post Reply