[texture] image data initialization
This commit is contained in:
parent
1bd592fe67
commit
08a4ee34eb
1 changed files with 6 additions and 0 deletions
|
@ -549,6 +549,12 @@ static ImageEx LoadDDS(const char *fileName)
|
||||||
ImageEx image;
|
ImageEx image;
|
||||||
ddsHeader header;
|
ddsHeader header;
|
||||||
|
|
||||||
|
image.data = NULL;
|
||||||
|
image.width = 0;
|
||||||
|
image.height = 0;
|
||||||
|
image.mipmaps = 0;
|
||||||
|
image.compFormat = 0;
|
||||||
|
|
||||||
FILE *ddsFile = fopen(fileName, "rb");
|
FILE *ddsFile = fopen(fileName, "rb");
|
||||||
|
|
||||||
if (ddsFile == NULL)
|
if (ddsFile == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue