mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:55:01 +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"
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue