diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-08-29 15:53:21 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-08-29 15:53:21 +0000 |
| commit | 7349f088471d39e11d8369e6047d4743f4b9751d (patch) | |
| tree | 04120205d23fba887ee91374ef08fd428cad0b6c /Graphics/GraphicsEngineVulkan | |
| parent | Fixed update data for compressed textures (diff) | |
| download | DiligentCore-7349f088471d39e11d8369e6047d4743f4b9751d.tar.gz DiligentCore-7349f088471d39e11d8369e6047d4743f4b9751d.zip | |
Fixed debug checks
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 2 |
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; |
