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:
parent
de1de9ef8f
commit
9e776effe4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue