mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:57:37 +02:00
fix unix build buster for starfield
This commit is contained in:
parent
1ddc52252a
commit
1965ff286b
1 changed files with 2 additions and 5 deletions
|
@ -12,10 +12,10 @@
|
||||||
#include "starfield/Config.h"
|
#include "starfield/Config.h"
|
||||||
|
|
||||||
namespace starfield {
|
namespace starfield {
|
||||||
|
const float LOG2 = 1.4426950408889634;
|
||||||
|
|
||||||
class Tiling {
|
class Tiling {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
Tiling(unsigned tileResolution) : _tileResolution(tileResolution), _rcpSlice(tileResolution / Radians::twicePi()) {
|
Tiling(unsigned tileResolution) : _tileResolution(tileResolution), _rcpSlice(tileResolution / Radians::twicePi()) {
|
||||||
_nBits = ceil(log(getTileCount()) * LOG2); }
|
_nBits = ceil(log(getTileCount()) * LOG2); }
|
||||||
|
|
||||||
|
@ -39,10 +39,7 @@ namespace starfield {
|
||||||
unsigned _tileResolution;
|
unsigned _tileResolution;
|
||||||
float _rcpSlice;
|
float _rcpSlice;
|
||||||
unsigned _nBits;
|
unsigned _nBits;
|
||||||
|
|
||||||
const float LOG2 = 1.4426950408889634;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue