From e3fb4f27e251fac58f8c3c8dfcaef68ae818fc1c Mon Sep 17 00:00:00 2001 From: Indie C++/DX developer Date: Mon, 21 Jan 2019 00:05:51 +0800 Subject: [PATCH] fix: parameter same to member name --- base/VulkanTexture.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base/VulkanTexture.hpp b/base/VulkanTexture.hpp index fdff7517..0052097f 100644 --- a/base/VulkanTexture.hpp +++ b/base/VulkanTexture.hpp @@ -386,8 +386,8 @@ namespace vks void* buffer, VkDeviceSize bufferSize, VkFormat format, - uint32_t width, - uint32_t height, + uint32_t texWidth, + uint32_t texHeight, vks::VulkanDevice *device, VkQueue copyQueue, VkFilter filter = VK_FILTER_LINEAR, @@ -397,8 +397,8 @@ namespace vks assert(buffer); this->device = device; - width = width; - height = height; + width = texWidth; + height = texHeight; mipLevels = 1; VkMemoryAllocateInfo memAllocInfo = vks::initializers::memoryAllocateInfo();