diff --git a/deferred/deferred.cpp b/deferred/deferred.cpp index 43b2545a..a6a211a5 100644 --- a/deferred/deferred.cpp +++ b/deferred/deferred.cpp @@ -199,7 +199,6 @@ public: void prepareTextureTarget(vkTools::VulkanTexture *target, VkFormat format) { VkFormatProperties formatProperties; - VkResult err; uint32_t width = TEX_DIM; uint32_t height = TEX_DIM; @@ -323,7 +322,7 @@ public: VK_CHECK_RESULT(vkCreateImage(device, &image, nullptr, &attachment->image)); vkGetImageMemoryRequirements(device, attachment->image, &memReqs); memAlloc.allocationSize = memReqs.size; - getMemoryType(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, &memAlloc.memoryTypeIndex); + memAlloc.memoryTypeIndex = getMemoryType(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); VK_CHECK_RESULT(vkAllocateMemory(device, &memAlloc, nullptr, &attachment->mem)); VK_CHECK_RESULT(vkBindImageMemory(device, attachment->image, attachment->mem, 0)); diff --git a/offscreen/offscreen.cpp b/offscreen/offscreen.cpp index 5034fe1b..166a2a6b 100644 --- a/offscreen/offscreen.cpp +++ b/offscreen/offscreen.cpp @@ -247,7 +247,7 @@ public: colorImageView.image = offScreenFrameBuf.color.image; VK_CHECK_RESULT(vkCreateImageView(device, &colorImageView, nullptr, &offScreenFrameBuf.color.view)); - // Create sampler to sample from to collor attachment + // Create sampler to sample from to color attachment // Used to sample in the fragment shader for final rendering VkSamplerCreateInfo sampler = vkTools::initializers::samplerCreateInfo(); sampler.magFilter = VK_FILTER_LINEAR;