copy textures in appearance_copy
authorDerek Foreman <manmower@gmail.com>
Sun, 16 Mar 2003 23:41:42 +0000 (23:41 +0000)
committerDerek Foreman <manmower@gmail.com>
Sun, 16 Mar 2003 23:41:42 +0000 (23:41 +0000)
render/render.c

index 63b55d5..71e5f7b 100644 (file)
@@ -177,7 +177,7 @@ Appearance *appearance_copy(Appearance *orig)
     break;
     }
     copy->textures = orig->textures;
-    copy->texture = NULL; /* XXX FIX ME */
+    memcpy(copy->texture, orig->texture, orig->textures * sizeof(Texture));
     copy->pixmap = None;
     copy->xftdraw = NULL;
     return copy;