Browse Source

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

Manuel Alfayate Corchete 4 years ago
parent
commit
09fcc9ed17
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/video/kmsdrm/SDL_kmsdrmvulkan.c

+ 1 - 1
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;