Fixed compiler warnings.

This commit is contained in:
hiker
2014-06-05 17:07:54 +10:00
parent c2a3b3870d
commit 48b9016384
3 changed files with 3 additions and 3 deletions

View File

@@ -570,7 +570,7 @@ void IrrDriver::renderSolidFirstPass()
void IrrDriver::renderSolidSecondPass()
{
SColor clearColor(0., 150, 150, 150);
SColor clearColor(0, 150, 150, 150);
if (World::getWorld() != NULL)
clearColor = World::getWorld()->getClearColor();

View File

@@ -90,7 +90,7 @@ RTT::RTT(size_t width, size_t height)
const dimension2du warpvsize(1, 512);
const dimension2du warphsize(512, 1);
unsigned linear_depth_mip_levels = ceil(log2(max_(res.Width, res.Height)));
unsigned linear_depth_mip_levels = int(ceilf(log2f( float(max_(res.Width, res.Height)) )));
DepthStencilTexture = generateRTT(res, GL_DEPTH24_STENCIL8, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8);

View File

@@ -94,7 +94,7 @@ class FeatureUnlockedCutScene : public GUIEngine::CutsceneScreen, public GUIEngi
PtrVector<KartModel> m_all_kart_models;
/** Global evolution of time */
double m_global_time;
float m_global_time;
/** Key position from origin (where the chest is) */
float m_key_pos;