From 8c483ffc69f999423dd4e4d385bbe4b7e697ab45 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 25 Oct 2019 00:24:36 -0700 Subject: Fixed few clang warnings --- Graphics/GraphicsEngineVulkan/src/GenerateMipsVkHelper.cpp | 2 +- Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/src/GenerateMipsVkHelper.cpp b/Graphics/GraphicsEngineVulkan/src/GenerateMipsVkHelper.cpp index cc9ae36f..112c0bf3 100644 --- a/Graphics/GraphicsEngineVulkan/src/GenerateMipsVkHelper.cpp +++ b/Graphics/GraphicsEngineVulkan/src/GenerateMipsVkHelper.cpp @@ -216,7 +216,7 @@ namespace Diligent DEV_CHECK_ERR(ViewDesc.NumMipLevels > 1, "Number of mip levels in the view must be greater than 1"); DEV_CHECK_ERR(OriginalState != RESOURCE_STATE_UNDEFINED, "Attempting to generate mipmaps for texture '", TexDesc.Name, "' which is in RESOURCE_STATE_UNDEFINED state ." - "This is not expected in Vulkan backend as textures are transition to a defined state when created."); + "This is not expected in Vulkan backend as textures are transition to a defined state when created."); (void)OriginalState; const auto& FmtAttribs = GetTextureFormatAttribs(ViewDesc.Format); VkImageSubresourceRange SubresRange = {}; diff --git a/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp index e5fa302d..b74d4f60 100644 --- a/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/TextureVkImpl.cpp @@ -767,7 +767,7 @@ void TextureVkImpl::InvalidateStagingRange(VkDeviceSize Offset, VkDeviceSize Siz InvalidateRange.offset = m_StagingDataAlignedOffset + Offset; InvalidateRange.size = Size; auto err = LogicalDevice.InvalidateMappedMemoryRanges(1, &InvalidateRange); - DEV_CHECK_ERR(err == VK_SUCCESS, "Failed to invalidated mapped texture memory range"); + DEV_CHECK_ERR(err == VK_SUCCESS, "Failed to invalidated mapped texture memory range"); (void)err; } } -- cgit v1.2.3