Skip to content

Commit

Permalink
Make sure VkSurfaceKHR is cast to uintptr properly
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-lunarg committed Dec 19, 2023
1 parent dc2a829 commit 40633a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions loader/wsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateWin32SurfaceKHR(VkInstance insta
}
}

*pSurface = (VkSurfaceKHR)(pIcdSurface);
*pSurface = (VkSurfaceKHR)(uintptr_t)pIcdSurface;

out:

Expand Down Expand Up @@ -1595,7 +1595,7 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateMetalSurfaceEXT(VkInstance insta
}
}
}
*pSurface = (VkSurfaceKHR)icd_surface;
*pSurface = (VkSurfaceKHR)(uintptr_t)icd_surface;

out:
if (result != VK_SUCCESS && icd_surface != NULL) {
Expand Down Expand Up @@ -2571,7 +2571,7 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateImagePipeSurfaceFUCHSIA(VkInstan
}
}

*pSurface = (VkSurfaceKHR)(pIcdSurface);
*pSurface = (VkSurfaceKHR)(uintptr_t)pIcdSurface;

out:

Expand Down

0 comments on commit 40633a6

Please sign in to comment.