Fixed Visual Studio warning 4701

This commit is contained in:
Sam Lantinga
2023-03-30 14:02:02 -07:00
parent 28d687aae0
commit b078122c53
4 changed files with 6 additions and 10 deletions

View File

@@ -175,7 +175,7 @@
Uint8 *src = from; \
Uint8 *dst = to; \
for (i = 0; i < (int)(length); i++) { \
Uint32 s, d; \
Uint32 s = 0, d = 0; \
unsigned rs, gs, bs, rd, gd, bd; \
switch (bpp) { \
case 2: \

View File

@@ -273,7 +273,7 @@ SDL_bool SDL_Vulkan_Display_CreateSurface(void *vkGetInstanceProcAddr_,
VkDisplayKHR display;
VkDisplayPlanePropertiesKHR *displayPlaneProperties = NULL;
VkExtent2D extent;
VkDisplayPlaneCapabilitiesKHR planeCaps;
VkDisplayPlaneCapabilitiesKHR planeCaps = { 0 };
/* Get information about the physical displays */
result = vkGetPhysicalDeviceDisplayPropertiesKHR(physicalDevice, &displayPropertiesCount, NULL);