Browse Source

Add missing increments of k in LoadImageDataNormalized() (#4745)

Henrik A. Glass 10 months ago
parent
commit
4f5a20a634
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/rtextures.c

+ 3 - 0
src/rtextures.c

@@ -5512,6 +5512,7 @@ static Vector4 *LoadImageDataNormalized(Image image)
                     pixels[i].z = 0.0f;
                     pixels[i].z = 0.0f;
                     pixels[i].w = 1.0f;
                     pixels[i].w = 1.0f;
 
 
+                    k += 1;
                 } break;
                 } break;
                 case PIXELFORMAT_UNCOMPRESSED_R32G32B32:
                 case PIXELFORMAT_UNCOMPRESSED_R32G32B32:
                 {
                 {
@@ -5537,6 +5538,8 @@ static Vector4 *LoadImageDataNormalized(Image image)
                     pixels[i].y = 0.0f;
                     pixels[i].y = 0.0f;
                     pixels[i].z = 0.0f;
                     pixels[i].z = 0.0f;
                     pixels[i].w = 1.0f;
                     pixels[i].w = 1.0f;
+
+                    k += 1;
                 } break;
                 } break;
                 case PIXELFORMAT_UNCOMPRESSED_R16G16B16:
                 case PIXELFORMAT_UNCOMPRESSED_R16G16B16:
                 {
                 {