mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-28 17:04:34 +00:00
Merge pull request #3742 from karl-zylinski/fix-raymath-matrix-to-float
Make rl.MatrixToFloatV do same thing in Odin as in C
This commit is contained in:
2
vendor/raylib/raymath.odin
vendored
2
vendor/raylib/raymath.odin
vendored
@@ -668,7 +668,7 @@ MatrixLookAt :: proc "c" (eye, target, up: Vector3) -> Matrix {
|
||||
// Get float array of matrix data
|
||||
@(require_results)
|
||||
MatrixToFloatV :: proc "c" (mat: Matrix) -> [16]f32 {
|
||||
return transmute([16]f32)mat
|
||||
return transmute([16]f32)linalg.transpose(mat)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user