diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-08-30 06:05:59 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-08-30 06:05:59 +0000 |
| commit | 430fab754cb3b6dbd9ac5d4a3543beccdc0e7ac8 (patch) | |
| tree | be9b2e462da73b1471847c142432531ab3ac7341 /Graphics/GraphicsEngineVulkan | |
| parent | Fixed MacOS/iOS build error (diff) | |
| download | DiligentCore-430fab754cb3b6dbd9ac5d4a3543beccdc0e7ac8.tar.gz DiligentCore-430fab754cb3b6dbd9ac5d4a3543beccdc0e7ac8.zip | |
Fixed issue in DeviceContextVkImpl::UpdateTextureRegion()
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 c9ffb87f..889e80aa 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -1170,7 +1170,7 @@ namespace Diligent VERIFY(UpdateRegionDepth == 1 || SrcDepthStride >= PlaneSize, "Source data depth stride (", SrcDepthStride, ") is below the image plane size (", PlaneSize, ")"); #endif const auto BufferDataStride = RowSize; - const auto BufferDataDepthStride = (UpdateRegionHeight / FmtAttribs.BlockHeight) * BufferDataStride; + const auto BufferDataDepthStride = RowCount * BufferDataStride; const auto MemorySize = UpdateRegionDepth * BufferDataDepthStride; size_t Alignment = 4; auto UploadSpace = AllocateDynamicSpace(MemorySize + static_cast<Uint32>(Alignment)); |
