Add -Wdouble-promotion switch to clang/gcc compilers
It introduces a lot of ugly casts. Long term the floats should probably be changed to doubles everywhere since we're only compiling for 64 bit x86.
This commit is contained in:
@@ -44,7 +44,7 @@ void ReviveTabController::initStage1( bool forceRevivePage )
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( valuef == 0.0 )
|
||||
if ( valuef == 0.0f )
|
||||
{
|
||||
m_pixelsPerDisplayPixelOverrideEnabled = false;
|
||||
m_pixelsPerDisplayPixelOverride = 1.0;
|
||||
@@ -321,7 +321,7 @@ void ReviveTabController::eventLoopTick()
|
||||
&vrSettingsError );
|
||||
if ( vrSettingsError == vr::VRSettingsError_None )
|
||||
{
|
||||
if ( valuef == 0.0 )
|
||||
if ( valuef == 0.0f )
|
||||
{
|
||||
setPixelsPerDisplayPixelOverrideEnabled( false );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user