diff --git a/stb_image.h b/stb_image.h index e1c29b8d8552b159a14fb3d900f2b69ea8f11bb6..5d54bd1f4068ea93360d3be2e885677da6906133 100644 --- a/stb_image.h +++ b/stb_image.h @@ -5195,7 +5195,7 @@ static stbi_uc *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int // Read the data. if (bitdepth == 16) { for (i = 0; i < pixelCount; i++, p += 4) - *p = stbi__get16le(s) * 255 / 65535; + *p = stbi__get16be(s) * 255 / 65535; } else { for (i = 0; i < pixelCount; i++, p += 4) *p = stbi__get8(s);