diff options
Diffstat (limited to 'stockton-levels')
-rw-r--r-- | stockton-levels/src/traits/vertices.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stockton-levels/src/traits/vertices.rs b/stockton-levels/src/traits/vertices.rs index cea1806..7b14c98 100644 --- a/stockton-levels/src/traits/vertices.rs +++ b/stockton-levels/src/traits/vertices.rs @@ -42,8 +42,8 @@ impl TexCoord { /// Internal function. Converts a slice to a TexCoord. pub fn from_bytes(bytes: &[u8; 16]) -> TexCoord { TexCoord { - u: [slice_to_f32(&bytes[0..4]), slice_to_f32(&bytes[4..8])], - v: [slice_to_f32(&bytes[8..12]), slice_to_f32(&bytes[12..16])], + u: [slice_to_f32(&bytes[0..4]), slice_to_f32(&bytes[8..12])], + v: [slice_to_f32(&bytes[4..8]), slice_to_f32(&bytes[12..16])], } } } |