Load speedmeter texture before rendering the first frame

This commit is contained in:
Benau 2017-03-18 08:30:50 +08:00
parent 09e2f96ba8
commit 21cbcd9185

View File

@ -128,8 +128,11 @@ RaceGUI::RaceGUI()
m_is_tutorial = (race_manager->getTrackName() == "tutorial");
// Load speedmeter texture before rendering the first frame
m_speed_meter_icon = material_manager->getMaterial("speedback.png");
m_speed_meter_icon->getTexture();
m_speed_bar_icon = material_manager->getMaterial("speedfore.png");
m_speed_bar_icon->getTexture();
//createMarkerTexture();
} // RaceGUI