aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_vulkan_demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pugl_vulkan_demo.c')
-rw-r--r--examples/pugl_vulkan_demo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/pugl_vulkan_demo.c b/examples/pugl_vulkan_demo.c
index fe8437e..06d73ee 100644
--- a/examples/pugl_vulkan_demo.c
+++ b/examples/pugl_vulkan_demo.c
@@ -1032,7 +1032,9 @@ onEvent(PuglView* const view, const PuglEvent* const e)
int
main(int argc, char** argv)
{
- VulkanApp app = {0};
+ VulkanApp app;
+ memset(&app, 0, sizeof(app));
+
VulkanState* vk = &app.vk;
const uint32_t defaultWidth = 640;
const uint32_t defaultHeight = 360;