uninitialized variables-gfx

This commit is contained in:
AzaezelX 2020-05-11 15:00:25 -05:00
parent 1efb687867
commit b9c207765e
33 changed files with 108 additions and 43 deletions

View file

@ -176,7 +176,15 @@ struct DDSFile
// For debugging fun!
static S32 smActiveCopies;
DDSFile()
DDSFile():
mBytesPerPixel(0),
mHeight(0),
mWidth(0),
mDepth(0),
mFormat(GFXFormat_FIRST),
mFourCC(0),
mMipMapCount(0),
mPitchOrLinearSize(0)
{
VECTOR_SET_ASSOCIATION( mSurfaces );
smActiveCopies++;
@ -203,4 +211,4 @@ struct DDSFile
bool decompressToGBitmap(GBitmap *dest);
};
#endif // _DDSFILE_H_
#endif // _DDSFILE_H_