Skip to content

Commit 3da2fc1

Browse files
authored
[rtextures] fix initialization align in Image to avoid issues with some platforms (#5214)
1 parent 43c81d2 commit 3da2fc1

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

src/rtextures.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -811,8 +811,8 @@ Image GenImageColor(int width, int height, Color color)
811811
.data = pixels,
812812
.width = width,
813813
.height = height,
814-
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
815-
.mipmaps = 1
814+
.mipmaps = 1,
815+
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
816816
};
817817

818818
return image;
@@ -863,8 +863,8 @@ Image GenImageGradientLinear(int width, int height, int direction, Color start,
863863
.data = pixels,
864864
.width = width,
865865
.height = height,
866-
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
867-
.mipmaps = 1
866+
.mipmaps = 1,
867+
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
868868
};
869869

870870
return image;
@@ -900,8 +900,8 @@ Image GenImageGradientRadial(int width, int height, float density, Color inner,
900900
.data = pixels,
901901
.width = width,
902902
.height = height,
903-
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
904-
.mipmaps = 1
903+
.mipmaps = 1,
904+
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
905905
};
906906

907907
return image;
@@ -949,8 +949,8 @@ Image GenImageGradientSquare(int width, int height, float density, Color inner,
949949
.data = pixels,
950950
.width = width,
951951
.height = height,
952-
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
953-
.mipmaps = 1
952+
.mipmaps = 1,
953+
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
954954
};
955955

956956
return image;
@@ -974,8 +974,8 @@ Image GenImageChecked(int width, int height, int checksX, int checksY, Color col
974974
.data = pixels,
975975
.width = width,
976976
.height = height,
977-
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
978-
.mipmaps = 1
977+
.mipmaps = 1,
978+
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
979979
};
980980

981981
return image;
@@ -997,8 +997,8 @@ Image GenImageWhiteNoise(int width, int height, float factor)
997997
.data = pixels,
998998
.width = width,
999999
.height = height,
1000-
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
1001-
.mipmaps = 1
1000+
.mipmaps = 1,
1001+
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
10021002
};
10031003

10041004
return image;
@@ -1048,8 +1048,8 @@ Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float
10481048
.data = pixels,
10491049
.width = width,
10501050
.height = height,
1051-
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
1052-
.mipmaps = 1
1051+
.mipmaps = 1,
1052+
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
10531053
};
10541054

10551055
return image;
@@ -1113,8 +1113,8 @@ Image GenImageCellular(int width, int height, int tileSize)
11131113
.data = pixels,
11141114
.width = width,
11151115
.height = height,
1116-
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8,
1117-
.mipmaps = 1
1116+
.mipmaps = 1,
1117+
.format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8
11181118
};
11191119

11201120
return image;

0 commit comments

Comments
 (0)