From 121732ad41e4bf7b50e06fb4662db20fa111a429 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sun, 7 Jan 2024 20:40:31 +0100 Subject: [PATCH] Code cleanup --- examples/pipelines/pipelines.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/pipelines/pipelines.cpp b/examples/pipelines/pipelines.cpp index c0195425..7f812536 100644 --- a/examples/pipelines/pipelines.cpp +++ b/examples/pipelines/pipelines.cpp @@ -255,6 +255,8 @@ public: void updateUniformBuffers() { + // Override the base sample camera setup, since we use three viewports + camera.setPerspective(60.0f, (float)(width / 3.0f) / (float)height, 0.1f, 256.0f); uniformData.projection = camera.matrices.perspective; uniformData.modelView = camera.matrices.view; memcpy(uniformBuffer.mapped, &uniformData, sizeof(UniformData)); @@ -284,8 +286,6 @@ public: { if (!prepared) return; - // Override the base sample camera setup, since we use three viewports - camera.setPerspective(60.0f, (float)(width / 3.0f) / (float)height, 0.1f, 256.0f); updateUniformBuffers(); draw(); }