From 06bd9b8caa8b744cbbeb54a7df1c48806e6e833a Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 4 Mar 2023 09:29:39 -0800 Subject: [PATCH] Fix a typo in rotation.y update + remove the doubled rotation code at call site. --- examples/pushdescriptors/pushdescriptors.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/pushdescriptors/pushdescriptors.cpp b/examples/pushdescriptors/pushdescriptors.cpp index a6f6094d..483ccf45 100644 --- a/examples/pushdescriptors/pushdescriptors.cpp +++ b/examples/pushdescriptors/pushdescriptors.cpp @@ -267,8 +267,8 @@ public: if (cubes[0].rotation.x > 360.0f) cubes[0].rotation.x -= 360.0f; cubes[1].rotation.y += 2.0f * frameTimer; - if (cubes[1].rotation.x > 360.0f) - cubes[1].rotation.x -= 360.0f; + if (cubes[1].rotation.y > 360.0f) + cubes[1].rotation.y -= 360.0f; } } @@ -324,12 +324,6 @@ public: return; draw(); if (animate && !paused) { - cubes[0].rotation.x += 2.5f * frameTimer; - if (cubes[0].rotation.x > 360.0f) - cubes[0].rotation.x -= 360.0f; - cubes[1].rotation.y += 2.0f * frameTimer; - if (cubes[1].rotation.x > 360.0f) - cubes[1].rotation.x -= 360.0f; updateCubeUniformBuffers(); } if (camera.updated) {