Changeset View
Changeset View
Standalone View
Standalone View
source/third_party/ogre3d/OgreGLSLPreprocessor.cpp
Show All 28 Lines | |||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||||
THE SOFTWARE. | THE SOFTWARE. | ||||
----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ||||
*/ | */ | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "Preprocessor.h" | #include "OgreGLSLPreprocessor.h" | ||||
#include "ps/CLogger.h" | #include "ps/CLogger.h" | ||||
elexis: Probably necessary change:
I suppose third party libs should not depend on Pyrogenesis code. | |||||
// Limit max number of macro arguments to this | // Limit max number of macro arguments to this | ||||
#define MAX_MACRO_ARGS 16 | #define MAX_MACRO_ARGS 16 | ||||
//---------------------------------------------------------------------------// | //---------------------------------------------------------------------------// | ||||
/// Return closest power of two not smaller than given number | /// Return closest power of two not smaller than given number | ||||
static size_t ClosestPow2 (size_t x) | static size_t ClosestPow2 (size_t x) | ||||
▲ Show 20 Lines • Show All 1,269 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Probably necessary change:
I suppose third party libs should not depend on Pyrogenesis code.
So this pyrogenesis specific addition should be superseded somehow.
It appears like one could overwrite the error reporter in a Pyrogenesis file, see L242