diff options
| author | Viktor <dayllenger@gmail.com> | 2026-01-08 12:01:43 +0000 |
|---|---|---|
| committer | Viktor <dayllenger@gmail.com> | 2026-01-08 12:01:43 +0000 |
| commit | d4a21b7573f01a7d28bcdca805f0d6b0360932a8 (patch) | |
| tree | eb13ef8ca6179934d3c7f182b7673b1f8c44483f | |
| parent | f9d9166ff11f3b6eeedb4355dfa930d69c40be8a (diff) | |
Fix TGA header detection
| -rw-r--r-- | core/image/general.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/image/general.odin b/core/image/general.odin index 1662cf14e..779f5d0b1 100644 --- a/core/image/general.odin +++ b/core/image/general.odin @@ -86,7 +86,7 @@ which_bytes :: proc(data: []byte) -> Which_File_Type { return v } get16le :: #force_inline proc(s: ^string) -> u16 { - v := u16(s[0]) | u16(s[1])<<16 + v := u16(s[0]) | u16(s[1])<<8 s^ = s[2:] return v } |