Skip to content

Commit

Permalink
Add missing increments of k in LoadImageDataNormalized() (#4745)
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikglass authored Feb 1, 2025
1 parent 1958de4 commit 4f5a20a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rtextures.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
{
Expand All @@ -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:
{
Expand Down

0 comments on commit 4f5a20a

Please sign in to comment.