The current version of our preprocessor is severly outdated, and it would be nice to use the latest version provided with ogre.
This one comes with a few fixes, as well as support for elifs statements.
To update the preprocessor I did the following.
1. Copied the file from here:
- https://github.com/OGRECave/ogre/blob/master/RenderSystems/GLSupport/src/GLSL/OgreGLSLPreprocessor.cpp
- https://github.com/OGRECave/ogre/blob/master/RenderSystems/GLSupport/include/GLSL/OgreGLSLPreprocessor.h
2. Remove the missing includes
- #include "OgrePlatform.h"
- #include "OgreLogManager.h"
3.Replace the logger by the snprintf function
4. Revert the change
- https://github.com/OGRECave/ogre/commit/856c276ebd4cb7100f4b133b0e5b29cbc8558653#diff-0d58870a84fae51c4dc7ca8f15c2d4a2
- Replace the Error () calls by ErrorHandler()
- Add the default parameter everywhere.