fix unix build buster for starfield

This commit is contained in:
Stephen Birarda 2013-10-18 09:16:55 -07:00
parent 1ddc52252a
commit 1965ff286b

View file

@ -12,10 +12,10 @@
#include "starfield/Config.h"
namespace starfield {
const float LOG2 = 1.4426950408889634;
class Tiling {
public:
Tiling(unsigned tileResolution) : _tileResolution(tileResolution), _rcpSlice(tileResolution / Radians::twicePi()) {
_nBits = ceil(log(getTileCount()) * LOG2); }
@ -39,10 +39,7 @@ namespace starfield {
unsigned _tileResolution;
float _rcpSlice;
unsigned _nBits;
const float LOG2 = 1.4426950408889634;
};
}
#endif