Initialize TexInfo members.

We rely on e.g. pixels being 'nullptr' to signal a missing
texture. When it's a random pointer, things go poorly.
This commit is contained in:
Par Winzell 2017-11-27 23:09:57 -08:00
parent de1de9ef8f
commit 9e776effe4
1 changed files with 4 additions and 4 deletions

View File

@ -428,10 +428,10 @@ ModelData *Raw2Gltf(
explicit TexInfo(int rawTexIx) : rawTexIx(rawTexIx) {}
const int rawTexIx;
int width;
int height;
int channels;
uint8_t *pixels;
int width {};
int height {};
int channels {};
uint8_t *pixels {};
};
int width = -1, height = -1;