At the end of function fillObbRestraint, #endif needs to move a little bit, otherwise we'll get compile error
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