[texture] image data initialization
This commit is contained in:
parent
1bd592fe67
commit
08a4ee34eb
|
|
@ -549,6 +549,12 @@ static ImageEx LoadDDS(const char *fileName)
|
|||
ImageEx image;
|
||||
ddsHeader header;
|
||||
|
||||
image.data = NULL;
|
||||
image.width = 0;
|
||||
image.height = 0;
|
||||
image.mipmaps = 0;
|
||||
image.compFormat = 0;
|
||||
|
||||
FILE *ddsFile = fopen(fileName, "rb");
|
||||
|
||||
if (ddsFile == NULL)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user