summaryrefslogtreecommitdiffstats
path: root/drivers/vulkan/rendering_device_vulkan.cpp
diff options
context:
space:
mode:
authorAnilforextra <anilforextra@gmail.com>2021-08-21 15:22:21 +0545
committerAnilforextra <anilforextra@gmail.com>2021-08-21 19:20:07 +0545
commitc86db8b710a575dc2a9b9cd640d06edb09b4bc72 (patch)
treea023fcd2343610a99bb18a700a7d373bef107440 /drivers/vulkan/rendering_device_vulkan.cpp
parent0a001afec53aa4caed7820b34db4d7d15686e24d (diff)
downloadredot-engine-c86db8b710a575dc2a9b9cd640d06edb09b4bc72.tar.gz
Remove redundant assignments.
Use used_in_transfer instead of used_in_compute twice.
Diffstat (limited to 'drivers/vulkan/rendering_device_vulkan.cpp')
-rw-r--r--drivers/vulkan/rendering_device_vulkan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/vulkan/rendering_device_vulkan.cpp b/drivers/vulkan/rendering_device_vulkan.cpp
index 63510d261a..2de8b9025c 100644
--- a/drivers/vulkan/rendering_device_vulkan.cpp
+++ b/drivers/vulkan/rendering_device_vulkan.cpp
@@ -7957,13 +7957,13 @@ void RenderingDeviceVulkan::compute_list_bind_uniform_set(ComputeListID p_list,
textures_to_storage[i]->used_in_compute = false;
textures_to_storage[i]->used_in_raster = false;
- textures_to_storage[i]->used_in_compute = false;
+ textures_to_storage[i]->used_in_transfer = false;
} else {
src_access_flags = 0;
textures_to_storage[i]->used_in_compute = false;
textures_to_storage[i]->used_in_raster = false;
- textures_to_storage[i]->used_in_compute = false;
+ textures_to_storage[i]->used_in_transfer = false;
textures_to_storage[i]->used_in_frame = frames_drawn;
}