From a4b1f252ad73de7775db3fb37254462348c67b94 Mon Sep 17 00:00:00 2001 From: "Adrian G L (aider)" Date: Mon, 15 Sep 2025 15:46:30 +0200 Subject: [PATCH] fix: add type annotation to resolve ambiguous transform matrix type in main.rs --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 3e99a2a..4c333eb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -301,7 +301,7 @@ fn main() { // == // Issue the necessary gl:: commands to draw your scene here simple_shader.activate(); // build and send the transform matrix (start from identity) - let mut transform = glm::identity(); + let mut transform: glm::Mat4 = glm::identity(); // modify element (0,0) here; change indices to test a, b, c, d, e, f, etc. transform[(0,0)] = elapsed.sin(); gl::UniformMatrix4fv(transform_loc, 1, gl::FALSE, transform.as_ptr());