Skip to content
Myr

Merge branch 'patch-1' of https://github.com/GMacharadze/stb into work2

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parents fe6bef2, 4e0c494 · Browse files · 1 file+9 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−1 removed

  • other:+9 added−1 removed

1 file+9 added−1 removed

modified:stb_image.h+9 added-1 removed
6647 unmodified lines
6648 ++layers; 6649 stride = g.w * g.h * 4; 6650 6651 if (out) {6652 out = (stbi_uc*) STBI_REALLOC( out, layers * stride ); 6652 void *tmp = (stbi_uc*) STBI_REALLOC( out, layers * stride );6653 if (NULL == tmp) {6654 STBI_FREE(g.out);6655 STBI_FREE(g.history);6656 STBI_FREE(g.background);6657 return stbi__errpuc("outofmem", "Out of memory");6658 }6659 else6660 out = tmp;6661 if (delays) {6662 *delays = (int*) STBI_REALLOC( *delays, sizeof(int) * layers ); 6663 }6664 } else {
942 unmodified lines