aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2017-08-14 12:02:30 -0600
committerTony Barbour <tony@LunarG.com>2017-08-14 12:05:38 -0600
commit34ea9cfddfd104afdd193f87cddca6cccd40be5e (patch)
tree54ccaccf8d5af9d955f4e012ade1feed083e58c5
parent5e0f5ada4a69940e3d884c4055a3480251f384a3 (diff)
downloadusermoji-34ea9cfddfd104afdd193f87cddca6cccd40be5e.tar.xz
demos: Add compositeAlphaFlags fix to cube.c
Change-Id: Id19d11e909ffc21c4aa6a419b071ba53594ae94f
-rw-r--r--demos/cube.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/cube.c b/demos/cube.c
index a903f6b6..56b9f37a 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -1250,7 +1250,7 @@ static void demo_prepare_buffers(struct demo *demo) {
VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR,
VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR,
};
- for (uint32_t i = 0; i < sizeof(compositeAlphaFlags); i++) {
+ for (uint32_t i = 0; i < ARRAY_SIZE(compositeAlphaFlags); i++) {
if (surfCapabilities.supportedCompositeAlpha & compositeAlphaFlags[i]) {
compositeAlpha = compositeAlphaFlags[i];
break;