diff options
| author | gingerBill <bill@gingerbill.org> | 2024-08-24 13:36:51 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-08-24 13:36:51 +0100 |
| commit | daccd72162d8a37f2d68a3fe1526a9f5fa427ddf (patch) | |
| tree | 094b4b77da2492e80a9fa76cc0a2082ac5949f7e | |
| parent | 8b248673c10b7301b7bbab3ace73b631d3964aee (diff) | |
| parent | faec52623ddb440b75c6b6baf668762c143be3d7 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
| -rw-r--r-- | core/image/common.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/image/common.odin b/core/image/common.odin index 62deb60a9..690ebc045 100644 --- a/core/image/common.odin +++ b/core/image/common.odin @@ -1393,6 +1393,7 @@ expand_grayscale :: proc(img: ^Image, allocator := context.allocator) -> (ok: bo for p in inp { out[0].rgb = p.r // Gray component. out[0].a = p.g // Alpha component. + out = out[1:] } case: @@ -1417,6 +1418,7 @@ expand_grayscale :: proc(img: ^Image, allocator := context.allocator) -> (ok: bo for p in inp { out[0].rgb = p.r // Gray component. out[0].a = p.g // Alpha component. + out = out[1:] } case: |