From 0b79d38fd129278ef4abd04edc14155358544826 Mon Sep 17 00:00:00 2001 From: Discosultan Date: Sun, 26 Feb 2017 12:20:56 +0200 Subject: [PATCH] Remove duplicate assignment of image usage in texture sample --- texture/texture.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/texture/texture.cpp b/texture/texture.cpp index f614620c..b295dde6 100644 --- a/texture/texture.cpp +++ b/texture/texture.cpp @@ -274,7 +274,6 @@ public: imageCreateInfo.arrayLayers = 1; imageCreateInfo.samples = VK_SAMPLE_COUNT_1_BIT; imageCreateInfo.tiling = VK_IMAGE_TILING_OPTIMAL; - imageCreateInfo.usage = VK_IMAGE_USAGE_SAMPLED_BIT; imageCreateInfo.sharingMode = VK_SHARING_MODE_EXCLUSIVE; // Set initial layout of the image to undefined imageCreateInfo.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;