mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
comp/client: More 32-bit porting fixes
This commit is contained in:
parent
163b39b7a1
commit
ffa5a76cea
|
@ -29,16 +29,16 @@ client_vk_swapchain_destroy(struct xrt_swapchain *xsc)
|
|||
struct client_vk_compositor *c = sc->c;
|
||||
|
||||
for (uint32_t i = 0; i < sc->base.base.num_images; i++) {
|
||||
if (sc->base.images[i] != NULL) {
|
||||
if (sc->base.images[i] != VK_NULL_HANDLE) {
|
||||
c->vk.vkDestroyImage(c->vk.device, sc->base.images[i],
|
||||
NULL);
|
||||
sc->base.images[i] = NULL;
|
||||
sc->base.images[i] = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
if (sc->base.mems[i] != NULL) {
|
||||
if (sc->base.mems[i] != VK_NULL_HANDLE) {
|
||||
c->vk.vkFreeMemory(c->vk.device, sc->base.mems[i],
|
||||
NULL);
|
||||
sc->base.mems[i] = NULL;
|
||||
sc->base.mems[i] = VK_NULL_HANDLE;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue