Skip to content
Snippets Groups Projects
Commit 4b9ec1ec authored by Simon McVittie's avatar Simon McVittie
Browse files

check-vulkan: Add missing braces for initialization of subobject


VkClearValue is a struct whose first member is a union whose first
member is an array of four floats, so we need three levels of braces
to initialize it. clang++ 8 warns for this.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 5769e2ed
Branches
Tags
1 merge request!81Fix some compiler warnings
Pipeline #1915 passed
......@@ -653,7 +653,7 @@ private:
renderPassInfo.renderArea.offset = {0, 0};
renderPassInfo.renderArea.extent = swapChainExtent;
VkClearValue clearColor = {0.0f, 0.0f, 0.0f, 1.0f};
VkClearValue clearColor = { { {0.0f, 0.0f, 0.0f, 1.0f} } };
renderPassInfo.clearValueCount = 1;
renderPassInfo.pClearValues = &clearColor;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment