fix: parameter same to member name

This commit is contained in:
Indie C++/DX developer 2019-01-21 00:05:51 +08:00 committed by GitHub
parent dbe3f01283
commit e3fb4f27e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -386,8 +386,8 @@ namespace vks
void* buffer, void* buffer,
VkDeviceSize bufferSize, VkDeviceSize bufferSize,
VkFormat format, VkFormat format,
uint32_t width, uint32_t texWidth,
uint32_t height, uint32_t texHeight,
vks::VulkanDevice *device, vks::VulkanDevice *device,
VkQueue copyQueue, VkQueue copyQueue,
VkFilter filter = VK_FILTER_LINEAR, VkFilter filter = VK_FILTER_LINEAR,
@ -397,8 +397,8 @@ namespace vks
assert(buffer); assert(buffer);
this->device = device; this->device = device;
width = width; width = texWidth;
height = height; height = texHeight;
mipLevels = 1; mipLevels = 1;
VkMemoryAllocateInfo memAllocInfo = vks::initializers::memoryAllocateInfo(); VkMemoryAllocateInfo memAllocInfo = vks::initializers::memoryAllocateInfo();