summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-08-29 15:53:21 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-08-29 15:53:21 +0000
commit7349f088471d39e11d8369e6047d4743f4b9751d (patch)
tree04120205d23fba887ee91374ef08fd428cad0b6c /Graphics/GraphicsEngineVulkan
parentFixed update data for compressed textures (diff)
downloadDiligentCore-7349f088471d39e11d8369e6047d4743f4b9751d.tar.gz
DiligentCore-7349f088471d39e11d8369e6047d4743f4b9751d.zip
Fixed debug checks
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
index 7fc80d8a..7810cdce 100644
--- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
+++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
@@ -1142,7 +1142,7 @@ namespace Diligent
UpdateRegionWidth / Uint32{FmtAttribs.BlockWidth} * Uint32{FmtAttribs.ComponentSize} :
UpdateRegionWidth * Uint32{FmtAttribs.ComponentSize} * Uint32{FmtAttribs.NumComponents};
VERIFY(SrcStride >= RowSize, "Source data stride (", SrcStride, ") is below the image row size (", RowSize, ")");
- VERIFY(SrcDepthStride == 0 || SrcDepthStride >= SrcStride * UpdateRegionHeight, "Source data depth stride (", SrcDepthStride, ") is below the image plane size (", SrcStride * UpdateRegionHeight, ")");
+ VERIFY(SrcDepthStride == 0 || SrcDepthStride >= SrcStride * (UpdateRegionHeight / FmtAttribs.BlockHeight), "Source data depth stride (", SrcDepthStride, ") is below the image plane size (", SrcStride * UpdateRegionHeight, ")");
const auto BufferDataStride = RowSize;
const auto BufferDataDepthStride = UpdateRegionHeight * BufferDataStride;
auto MemorySize = UpdateRegionDepth * BufferDataDepthStride;