projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed8d554
)
demos/cube: set data size for xglGetImageSubresourceInfo()
author
Chia-I Wu
<olv@lunarg.com>
Mon, 5 Jan 2015 08:27:42 +0000
(16:27 +0800)
committer
Courtney Goeltzenleuchter
<courtney@LunarG.com>
Thu, 5 Feb 2015 00:58:03 +0000
(17:58 -0700)
demos/cube.c
patch
|
blob
|
history
diff --git
a/demos/cube.c
b/demos/cube.c
index fcf65c4b1a42945ca8947f207b99c01bcf3da2b0..9b187a100788cc80d1920f9c48fbf463f73ae28c 100644
(file)
--- 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,