summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-08-30 06:05:59 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-08-30 06:05:59 +0000
commit430fab754cb3b6dbd9ac5d4a3543beccdc0e7ac8 (patch)
treebe9b2e462da73b1471847c142432531ab3ac7341 /Graphics/GraphicsEngineVulkan
parentFixed MacOS/iOS build error (diff)
downloadDiligentCore-430fab754cb3b6dbd9ac5d4a3543beccdc0e7ac8.tar.gz
DiligentCore-430fab754cb3b6dbd9ac5d4a3543beccdc0e7ac8.zip
Fixed issue in DeviceContextVkImpl::UpdateTextureRegion()
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 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));