aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2015-01-05 16:27:42 +0800
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-04 17:58:03 -0700
commit170de775df96df4c4808e67b62765627dae947e7 (patch)
treec710a7714fdac92d8953038480f35f1878713a2e
parented8d55410891ccd056877eccb7f6a6730ee44000 (diff)
downloadusermoji-170de775df96df4c4808e67b62765627dae947e7.tar.xz
demos/cube: set data size for xglGetImageSubresourceInfo()
-rw-r--r--demos/cube.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/cube.c b/demos/cube.c
index fcf65c4b..9b187a10 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -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,