From 4f5a20a634918ca0fff893ad0ac586a515186c81 Mon Sep 17 00:00:00 2001 From: "Henrik A. Glass" Date: Sat, 1 Feb 2025 21:30:21 +0100 Subject: [PATCH] Add missing increments of k in LoadImageDataNormalized() (#4745) --- src/rtextures.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rtextures.c b/src/rtextures.c index 0317f0385..ee116b0e5 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -5512,6 +5512,7 @@ static Vector4 *LoadImageDataNormalized(Image image) pixels[i].z = 0.0f; pixels[i].w = 1.0f; + k += 1; } break; case PIXELFORMAT_UNCOMPRESSED_R32G32B32: { @@ -5537,6 +5538,8 @@ static Vector4 *LoadImageDataNormalized(Image image) pixels[i].y = 0.0f; pixels[i].z = 0.0f; pixels[i].w = 1.0f; + + k += 1; } break; case PIXELFORMAT_UNCOMPRESSED_R16G16B16: {