diff options
| author | raysan5 <raysan5@gmail.com> | 2014-12-17 19:47:17 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2014-12-17 19:47:17 +0100 |
| commit | 08a4ee34ebe97e679a27f43b9f25525982029d17 (patch) | |
| tree | 9400c8eb52b484dfce3a89883cf17a363aaf3b19 /src | |
| parent | 1bd592fe67da63b4dc2b149c0701c19f73afb8cc (diff) | |
| download | raylib-08a4ee34ebe97e679a27f43b9f25525982029d17.tar.gz raylib-08a4ee34ebe97e679a27f43b9f25525982029d17.zip | |
[texture] image data initialization
Diffstat (limited to 'src')
| -rw-r--r-- | src/textures.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/textures.c b/src/textures.c index 8e78ac34..ce56d3a3 100644 --- a/src/textures.c +++ b/src/textures.c @@ -548,6 +548,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"); |
