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
No related branches found
No related tags found
1 merge request!81Fix some compiler warnings
Pipeline #1915 passed
...@@ -653,7 +653,7 @@ private: ...@@ -653,7 +653,7 @@ private:
renderPassInfo.renderArea.offset = {0, 0}; renderPassInfo.renderArea.offset = {0, 0};
renderPassInfo.renderArea.extent = swapChainExtent; 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.clearValueCount = 1;
renderPassInfo.pClearValues = &clearColor; renderPassInfo.pClearValues = &clearColor;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment