Removes most of Visual Studio warnings

This commit is contained in:
Jonas Strandstedt
2014-12-16 19:09:32 +01:00
parent 6ad4d0743e
commit b81133e381
17 changed files with 87 additions and 79 deletions
+1 -1
View File
@@ -516,7 +516,7 @@ void OpenSpaceEngine::postSynchronizationPreDraw() {
bool buttons[2] = { button0 != 0, button1 != 0 };
double dt = std::max(sgct::Engine::instance()->getDt(), 1.0/60.0);
_gui.startFrame(dt, glm::vec2(glm::ivec2(x,y)), glm::vec2(posX, posY), buttons);
_gui.startFrame(static_cast<float>(dt), glm::vec2(glm::ivec2(x,y)), glm::vec2(posX, posY), buttons);
}
}