demos/cube: set data size for xglGetImageSubresourceInfo()
authorChia-I Wu <olv@lunarg.com>
Mon, 5 Jan 2015 08:27:42 +0000 (16:27 +0800)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 5 Feb 2015 00:58:03 +0000 (17:58 -0700)
demos/cube.c

index fcf65c4b1a42945ca8947f207b99c01bcf3da2b0..9b187a100788cc80d1920f9c48fbf463f73ae28c 100644 (file)
@@ -748,7 +748,7 @@ static void demo_prepare_textures(struct demo *demo)
             .arraySlice = 0,
         };
         XGL_SUBRESOURCE_LAYOUT layout;
-        XGL_SIZE layout_size;
+        XGL_SIZE layout_size = sizeof(layout);
         XGL_VOID *data;
 
         err = xglGetImageSubresourceInfo(demo->textures[i].image, &subres,