Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AmesingFlank committed Nov 15, 2021
1 parent 7c06bdd commit 3fe183d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion taichi/backends/vulkan/vulkan_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,7 @@ void VulkanSurface::create_swap_chain() {
createInfo.compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR;
createInfo.presentMode = present_mode;
createInfo.clipped = VK_TRUE;
createInfo.oldSwapchain = nullptr;
createInfo.oldSwapchain = VK_NULL_HANDLE;

if (vkCreateSwapchainKHR(device_->vk_device(), &createInfo,
kNoVkAllocCallbacks, &swapchain_) != VK_SUCCESS) {
Expand Down
2 changes: 1 addition & 1 deletion taichi/backends/vulkan/vulkan_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class VulkanResourceBinder : public ResourceBinder {
struct Binding {
VkDescriptorType type;
DevicePtr ptr;
size_t size;
VkDeviceSize size;
VkSampler sampler{VK_NULL_HANDLE}; // used only for images
};

Expand Down

0 comments on commit 3fe183d

Please sign in to comment.