aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-03-14 17:40:38 -0400
committerDavid Robillard <d@drobilla.net>2022-03-14 17:44:58 -0400
commit2a56aca2b1113c4dd565b6138c49ed21da9bcc7c (patch)
tree193572dfd38b91d58d13be02dd9925ec54f29335
parent6dc4b193bfa918b161cdf0dc276280484db5cb7c (diff)
downloadpugl-2a56aca2b1113c4dd565b6138c49ed21da9bcc7c.tar.gz
pugl-2a56aca2b1113c4dd565b6138c49ed21da9bcc7c.tar.bz2
pugl-2a56aca2b1113c4dd565b6138c49ed21da9bcc7c.zip
Fix warning in VS2019
-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;