aboutsummaryrefslogtreecommitdiff
path: root/src/texture.c
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-28 00:07:50 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-28 00:07:50 +0000
commit8419a8a8e2bdc01aa37e475d3a83a2a4a9a4bdf8 (patch)
tree2f54eb1cba42869d364aa94153f1c29385c5c34a /src/texture.c
parent548677824437a1338fdd253b1d978fec6c7fbd4e (diff)
downloadimv-8419a8a8e2bdc01aa37e475d3a83a2a4a9a4bdf8.tar.gz
Load still images in the background
Diffstat (limited to 'src/texture.c')
-rw-r--r--src/texture.c3
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);