summaryrefslogtreecommitdiffstats
path: root/TextureLoader/src/PNGCodec.c
diff options
context:
space:
mode:
authorAssiduous <61806567+TheMostDiligent@users.noreply.github.com>2021-03-18 05:06:50 +0000
committerGitHub <noreply@github.com>2021-03-18 05:06:50 +0000
commit1de4b5caf9a2f779b2a160c210b425e1c63bb1a9 (patch)
treefcac53b85a8f10b5a6a698cdc7c3ccd21f700625 /TextureLoader/src/PNGCodec.c
parentUpdated readme (diff)
parentFix misc. typos (diff)
downloadDiligentTools-1de4b5caf9a2f779b2a160c210b425e1c63bb1a9.tar.gz
DiligentTools-1de4b5caf9a2f779b2a160c210b425e1c63bb1a9.zip
Merge pull request #21 from luzpaz/typos
Fix misc. typos
Diffstat (limited to 'TextureLoader/src/PNGCodec.c')
-rw-r--r--TextureLoader/src/PNGCodec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/TextureLoader/src/PNGCodec.c b/TextureLoader/src/PNGCodec.c
index 9ccb920..d02cb9e 100644
--- a/TextureLoader/src/PNGCodec.c
+++ b/TextureLoader/src/PNGCodec.c
@@ -159,7 +159,7 @@ DECODE_PNG_RESULT Diligent_DecodePng(IDataBlob* pSrcPngBits,
//Array of row pointers. One for every row.
rowPtrs = malloc(sizeof(png_bytep) * pDstImgDesc->Height);
- //Alocate a buffer with enough space.
+ //Allocate a buffer with enough space.
pDstImgDesc->RowStride = pDstImgDesc->Width * (Uint32)bit_depth * pDstImgDesc->NumComponents / 8u;
// Align stride to 4 bytes
pDstImgDesc->RowStride = (pDstImgDesc->RowStride + 3u) & ~3u;
@@ -169,7 +169,7 @@ DECODE_PNG_RESULT Diligent_DecodePng(IDataBlob* pSrcPngBits,
for (size_t i = 0; i < pDstImgDesc->Height; i++)
rowPtrs[i] = pRow0 + i * pDstImgDesc->RowStride;
- //Read the imagedata and write it to the adresses pointed to
+ //Read the imagedata and write it to the addresses pointed to
//by rowptrs (in other words: our image databuffer)
png_read_image(png, rowPtrs);