diff --git a/src/graphics/irr_driver.cpp b/src/graphics/irr_driver.cpp index 3c931f4bd..91b5103e4 100644 --- a/src/graphics/irr_driver.cpp +++ b/src/graphics/irr_driver.cpp @@ -499,6 +499,7 @@ void IrrDriver::initDevice() m_glsl = (m_gl_major_version > 3 || (m_gl_major_version == 3 && m_gl_minor_version >= 1)); #endif initGL(); + m_sync = 0; // Parse extensions hasVSLayer = false; diff --git a/src/graphics/irr_driver.hpp b/src/graphics/irr_driver.hpp index 66f2c0313..2b4f121fd 100644 --- a/src/graphics/irr_driver.hpp +++ b/src/graphics/irr_driver.hpp @@ -208,7 +208,7 @@ private: bool m_need_ubo_workaround; bool m_need_rh_workaround; bool m_need_srgb_workaround; - GLsync m_sync = 0; + GLsync m_sync; /** The irrlicht device. */ IrrlichtDevice *m_device; /** Irrlicht scene manager. */ diff --git a/src/karts/cannon_animation.cpp b/src/karts/cannon_animation.cpp index cc47cba94..a44ee3f22 100644 --- a/src/karts/cannon_animation.cpp +++ b/src/karts/cannon_animation.cpp @@ -46,8 +46,6 @@ CannonAnimation::CannonAnimation(AbstractKart *kart, Ipo *ipo) const float dt = 0.1f; Vec3 xyz1; m_curve->update(dt, &xyz1); - core::vector3df rot1 = (xyz1-m_previous_orig_xyz).toIrrVector() - .getHorizontalAngle(); core::vector3df rot = (m_previous_orig_xyz-xyz1).toIrrVector() .getHorizontalAngle(); btQuaternion q(Vec3(0,1,0),rot.Y*DEGREE_TO_RAD); diff --git a/src/physics/btKart.cpp b/src/physics/btKart.cpp index d411e9708..8e28cf21a 100644 --- a/src/physics/btKart.cpp +++ b/src/physics/btKart.cpp @@ -382,8 +382,7 @@ void btKart::updateVehicle( btScalar step ) m_visual_wheels_touch_ground = true; for (int i=0;i1) speed_ratio = 1; - video::ITexture *bar_texture = m_speed_bar_icon->getTexture(); video::S3DVertex vertices[5]; unsigned int count;