Vulkan: Fix Unbinding All Images

When unbinding all images, all textures where unbound. This was
incorrect. This PR fixes this.

Pull Request: https://projects.blender.org/blender/blender/pulls/108740
This commit is contained in:
Jeroen Bakker
2023-06-08 09:42:39 +02:00
parent 398b8428dd
commit 0a0a451b4d

View File

@@ -127,7 +127,7 @@ void VKStateManager::image_unbind(Texture *tex)
void VKStateManager::image_unbind_all()
{
for (TextureBinding &binding : texture_bindings_) {
for (TextureBinding &binding : image_bindings_) {
binding.texture = nullptr;
}
}