From 7140c5bccbef519e4c78c5b4aed1f82e04b85d73 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Tue, 18 Aug 2026 01:53:55 +0200 Subject: [PATCH] Fix #7365 Fixes #7365 --- core/image/tga/tga.odin | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/image/tga/tga.odin b/core/image/tga/tga.odin index 1941b53f9..8327b98cb 100644 --- a/core/image/tga/tga.odin +++ b/core/image/tga/tga.odin @@ -294,7 +294,7 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a return img, nil } - if resize(&img.pixels.buf, dest_channels * img.width * img.height) != nil { + if resize(&img.pixels.buf, img.channels * img.width * img.height) != nil { return img, .Unable_To_Allocate_Or_Resize } @@ -306,11 +306,11 @@ load_from_context :: proc(ctx: ^$C, options := Options{}, allocator := context.a pixel: RGBA_Pixel - stride := img.width * dest_channels + stride := img.width * img.channels line := 0 if origin_is_top else img.height - 1 for _ in 0..