diff --git a/include/osg/Math b/include/osg/Math index 1f9e2f6e9..13ee35eef 100644 --- a/include/osg/Math +++ b/include/osg/Math @@ -7,7 +7,7 @@ #include -#if defined(WIN32) || defined (macintosh)|| defined (sun) +#if defined(WIN32) || defined (macintosh)|| defined (sun) || defined (__DARWIN_OSX__) #include diff --git a/src/osg/Image.cpp b/src/osg/Image.cpp index 3cfeadcc9..b84bbd35d 100644 --- a/src/osg/Image.cpp +++ b/src/osg/Image.cpp @@ -150,7 +150,7 @@ void Image::ensureDimensionsArePowerOfTwo() float rounded_tp2 = floorf(tp2+0.5f); int new_t = (int)(powf(2.0f,rounded_tp2)); - static int max_size=256; + static GLint max_size=256; static bool init = true; if (init)