Skip to content

Commit

Permalink
Update vulkan_api.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bobcao3 authored Mar 15, 2022
1 parent 4ed432a commit fc089a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion taichi/backends/vulkan/vulkan_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ DeviceObjVkCommandPool::~DeviceObjVkCommandPool() {
}

DeviceObjVkCommandBuffer::~DeviceObjVkCommandBuffer() {
if (this->level = VK_COMMAND_BUFFER_LEVEL_PRIMARY) {
if (this->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY) {
ref_pool->free_primary.push(buffer);
} else {
ref_pool->free_secondary.push(buffer);
Expand Down

0 comments on commit fc089a6

Please sign in to comment.