summaryrefslogtreecommitdiffstats
path: root/examples/vulkan/hellovulkanwindow/hellovulkanwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/vulkan/hellovulkanwindow/hellovulkanwindow.cpp')
-rw-r--r--examples/vulkan/hellovulkanwindow/hellovulkanwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/vulkan/hellovulkanwindow/hellovulkanwindow.cpp b/examples/vulkan/hellovulkanwindow/hellovulkanwindow.cpp
index 0a7d1d4174..31d32307a9 100644
--- a/examples/vulkan/hellovulkanwindow/hellovulkanwindow.cpp
+++ b/examples/vulkan/hellovulkanwindow/hellovulkanwindow.cpp
@@ -94,7 +94,7 @@ void VulkanRenderer::startNextFrame()
if (m_green > 1.0f)
m_green = 0.0f;
- VkClearColorValue clearColor = { 0.0f, m_green, 0.0f, 1.0f };
+ VkClearColorValue clearColor = {{ 0.0f, m_green, 0.0f, 1.0f }};
VkClearDepthStencilValue clearDS = { 1.0f, 0 };
VkClearValue clearValues[2];
memset(clearValues, 0, sizeof(clearValues));