mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
Merge branch 'master' of github.com:bkaradzic/bgfx
This commit is contained in:
commit
4fd2a47d83
1 changed files with 2 additions and 2 deletions
4
3rdparty/stb_image/stb_image.c
vendored
4
3rdparty/stb_image/stb_image.c
vendored
|
@ -3745,7 +3745,7 @@ static stbi_uc *pic_load2(stbi *s,int width,int height,int *comp, stbi_uc *resul
|
||||||
int left=width, i;
|
int left=width, i;
|
||||||
|
|
||||||
while (left>0) {
|
while (left>0) {
|
||||||
stbi_uc count,value[4];
|
stbi_uc count,value[4] = { 0 };
|
||||||
|
|
||||||
count=get8u(s);
|
count=get8u(s);
|
||||||
if (at_eof(s)) return epuc("bad file","file too short (pure read count)");
|
if (at_eof(s)) return epuc("bad file","file too short (pure read count)");
|
||||||
|
@ -3769,7 +3769,7 @@ static stbi_uc *pic_load2(stbi *s,int width,int height,int *comp, stbi_uc *resul
|
||||||
if (at_eof(s)) return epuc("bad file","file too short (mixed read count)");
|
if (at_eof(s)) return epuc("bad file","file too short (mixed read count)");
|
||||||
|
|
||||||
if (count >= 128) { // Repeated
|
if (count >= 128) { // Repeated
|
||||||
stbi_uc value[4];
|
stbi_uc value[4] = { 0 };
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (count==128)
|
if (count==128)
|
||||||
|
|
Loading…
Reference in a new issue