Fix warnings

This commit is contained in:
Emil Axelsson
2019-05-19 17:50:42 +02:00
parent 673c31cfc7
commit 4afed908a1
+3 -2
View File
@@ -407,7 +407,7 @@ void RenderEngine::initializeGL() {
//Set horizontal FOV value with whatever the field of view (in degrees) is of the
// initialized window
_horizFieldOfView = global::windowDelegate.getHorizFieldOfView();
_horizFieldOfView = static_cast<float>(global::windowDelegate.getHorizFieldOfView());
constexpr const float FontSizeBig = 50.f;
_fontBig = global::fontManager.font(KeyFontMono, FontSizeBig);
@@ -474,7 +474,8 @@ void RenderEngine::updateRenderer() {
FR::defaultRenderer().setFramebufferSize(fontResolution());
FR::defaultProjectionRenderer().setFramebufferSize(renderingResolution());
//Override the aspect ratio property value to match that of resized window
_horizFieldOfView = global::windowDelegate.getHorizFieldOfView();
_horizFieldOfView =
static_cast<float>(global::windowDelegate.getHorizFieldOfView());
}
_renderer->update();