summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/sceneRenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/sceneRenderer.cpp b/ui/sceneRenderer.cpp
index 852f64c..6986fb6 100644
--- a/ui/sceneRenderer.cpp
+++ b/ui/sceneRenderer.cpp
@@ -12,7 +12,7 @@ static constexpr std::array<glm::vec4, 4> displayVAOdata {{
{1.0f, -1.0f, 1.0f, 0.0f},
}};
SceneRenderer::SceneRenderer(glm::ivec2 size, GLuint o) :
- camera {{-1250.0F, -1250.0F, 35.0F}, quarter_pi, rdiv(size.x, size.y), 0.1F, 10000.0F}, output {o},
+ camera {{-1250.0F, -1250.0F, 35.0F}, quarter_pi, ratio(size), 0.1F, 10000.0F}, output {o},
lighting {lightingShader_vs, lightingShader_fs}
{
glBindVertexArray(displayVAO);