mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-12 06:19:57 -05:00
Fix warnings
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user