Commit 09fcc9ed17a954067084856a3c04c44bc8c833bb

Manuel Alfayate Corchete 2020-12-23T16:45:23

[KMS/DRM][Vulkan] Fix small warning, thanks to Ozkan Sezer for spotting it.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/kmsdrm/SDL_kmsdrmvulkan.c b/src/video/kmsdrm/SDL_kmsdrmvulkan.c
index bd7f8e4..0efcdd7 100644
--- a/src/video/kmsdrm/SDL_kmsdrmvulkan.c
+++ b/src/video/kmsdrm/SDL_kmsdrmvulkan.c
@@ -199,7 +199,7 @@ SDL_bool KMSDRM_Vulkan_CreateSurface(_THIS,
     VkExtent2D image_size;
     VkDisplayModeKHR *display_mode = NULL;
     VkDisplayModePropertiesKHR display_mode_props = {0};
-    VkDisplayModeParametersKHR new_mode_parameters = {0};
+    VkDisplayModeParametersKHR new_mode_parameters = { {0, 0}, 0};
 
     VkResult result;
     SDL_bool ret = SDL_FALSE;