diff options
| author | gwizdz <lukasz.gwizdz@gmail.com> | 2017-08-08 01:17:01 +0200 |
|---|---|---|
| committer | Tony Barbour <tony@LunarG.com> | 2017-08-14 11:29:40 -0600 |
| commit | 5e0f5ada4a69940e3d884c4055a3480251f384a3 (patch) | |
| tree | c8e733ebeaf5e76397d96dfb2001be7f43938f5e /demos/cube.cpp | |
| parent | 8e67ef14b6a283849cea02f280fcb9c62faf9631 (diff) | |
| download | usermoji-5e0f5ada4a69940e3d884c4055a3480251f384a3.tar.xz | |
demos: cube.cpp - iterating over compositeAlphaFlags
Error in for loop condition
Change-Id: I8c775f961a6c05dd36e7acfdda6e94399365f90d
Diffstat (limited to 'demos/cube.cpp')
| -rw-r--r-- | demos/cube.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/cube.cpp b/demos/cube.cpp index 41011b26..a60b836d 100644 --- a/demos/cube.cpp +++ b/demos/cube.cpp @@ -1604,7 +1604,7 @@ Demo::Demo() vk::CompositeAlphaFlagBitsKHR::ePostMultiplied, vk::CompositeAlphaFlagBitsKHR::eInherit, }; - 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; |
