diff options
| author | Chia-I Wu <olv@lunarg.com> | 2015-01-05 16:27:42 +0800 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-02-04 17:58:03 -0700 |
| commit | 170de775df96df4c4808e67b62765627dae947e7 (patch) | |
| tree | c710a7714fdac92d8953038480f35f1878713a2e | |
| parent | ed8d55410891ccd056877eccb7f6a6730ee44000 (diff) | |
| download | usermoji-170de775df96df4c4808e67b62765627dae947e7.tar.xz | |
demos/cube: set data size for xglGetImageSubresourceInfo()
| -rw-r--r-- | demos/cube.c | 2 |
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, |
