summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Bosveld <joel@JOEL-LAPTOP-UBUNTU.(none)>2008-08-23 18:56:57 +0800
committerJoel Bosveld <joel@JOEL-LAPTOP-UBUNTU.(none)>2008-08-23 18:56:57 +0800
commit180ba8fb14ea4bf8e03d17da1826e8503e79b938 (patch)
tree12bf49b422513a93bc5deb6934fb6c72bc4f5e55
parent45bf4d63f1bb2add755aed1bfb519dcba4d792d0 (diff)
downloadphotowheel-180ba8fb14ea4bf8e03d17da1826e8503e79b938.tar.gz
photowheel-180ba8fb14ea4bf8e03d17da1826e8503e79b938.tar.bz2
Init texture before reading the image
-rw-r--r--photo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/photo.c b/photo.c
index 49bcab0..908a95c 100644
--- a/photo.c
+++ b/photo.c
@@ -208,7 +208,8 @@ photoTextureChange (CompScreen *s,
gs->photoTexture=malloc(sizeof (PhotoTexture) * gs-> n);
for(i=0;i<(gs->n);i++)
- {
+ {
+ initTexture(s, &(gs->photoTexture[i].tex));
if(!(readImageToTexture (s, &(gs->photoTexture[i]).tex, /*texture pointer*/
gs->photoTexFiles->value[i].s, /*file*/
&(gs->photoTexture[i]).width, /*pointer for width*/