From 9a727ccc43034286496515013ac69150ef1c4861 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sat, 23 Nov 2019 13:59:11 +0100 Subject: [PATCH] Put image memory barrier in proper command buffer --- examples/texturemipmapgen/texturemipmapgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/texturemipmapgen/texturemipmapgen.cpp b/examples/texturemipmapgen/texturemipmapgen.cpp index fb4cf6ea..db0f7926 100644 --- a/examples/texturemipmapgen/texturemipmapgen.cpp +++ b/examples/texturemipmapgen/texturemipmapgen.cpp @@ -305,7 +305,7 @@ public: // Prepare current mip level as image blit source for next level vks::tools::insertImageMemoryBarrier( - copyCmd, + blitCmd, texture.image, VK_ACCESS_TRANSFER_WRITE_BIT, VK_ACCESS_TRANSFER_READ_BIT,