diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-28 00:07:50 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-28 00:07:50 +0000 |
commit | 8419a8a8e2bdc01aa37e475d3a83a2a4a9a4bdf8 (patch) | |
tree | 2f54eb1cba42869d364aa94153f1c29385c5c34a /src/texture.c | |
parent | 548677824437a1338fdd253b1d978fec6c7fbd4e (diff) | |
download | imv-8419a8a8e2bdc01aa37e475d3a83a2a4a9a4bdf8.tar.gz |
Load still images in the background
Diffstat (limited to 'src/texture.c')
-rw-r--r-- | src/texture.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/texture.c b/src/texture.c index aa5a4f0..5b03708 100644 --- a/src/texture.c +++ b/src/texture.c @@ -19,9 +19,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. void imv_init_texture(struct imv_texture *tex, SDL_Renderer *r) { + memset(tex, 0, sizeof(struct imv_texture)); tex->renderer = r; - tex->num_chunks = 0; - tex->chunks = NULL; SDL_RendererInfo ri; SDL_GetRendererInfo(r, &ri); |