mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Put fix in correct position
This fixes a mismerge by @elmindreda in65748fb8f3
. (cherry picked from commitefda4afb49
)
This commit is contained in:
parent
1e8dc836a0
commit
116f4c831d
|
@ -2118,7 +2118,6 @@ static void demo_cleanup(struct demo *demo) {
|
||||||
|
|
||||||
if (demo->setup_cmd) {
|
if (demo->setup_cmd) {
|
||||||
vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->setup_cmd);
|
vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->setup_cmd);
|
||||||
demo->setup_cmd = VK_NULL_HANDLE;
|
|
||||||
}
|
}
|
||||||
vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->draw_cmd);
|
vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->draw_cmd);
|
||||||
vkDestroyCommandPool(demo->device, demo->cmd_pool, NULL);
|
vkDestroyCommandPool(demo->device, demo->cmd_pool, NULL);
|
||||||
|
@ -2178,6 +2177,7 @@ static void demo_resize(struct demo *demo) {
|
||||||
|
|
||||||
if (demo->setup_cmd) {
|
if (demo->setup_cmd) {
|
||||||
vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->setup_cmd);
|
vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->setup_cmd);
|
||||||
|
demo->setup_cmd = VK_NULL_HANDLE;
|
||||||
}
|
}
|
||||||
vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->draw_cmd);
|
vkFreeCommandBuffers(demo->device, demo->cmd_pool, 1, &demo->draw_cmd);
|
||||||
vkDestroyCommandPool(demo->device, demo->cmd_pool, NULL);
|
vkDestroyCommandPool(demo->device, demo->cmd_pool, NULL);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user