diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-11-25 21:02:49 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-11-25 21:02:49 +0000 |
| commit | 2b6a43bc5a5ebcb2e46fad395c2778b27d0bdb01 (patch) | |
| tree | 7490f75975fb368e38f784c71c50b82daf498ca5 /Graphics/GraphicsEngineVulkan | |
| parent | Renamed/moved IBuffer::Map() to IDeviceContext::MapBuffer() (diff) | |
| download | DiligentCore-2b6a43bc5a5ebcb2e46fad395c2778b27d0bdb01.tar.gz DiligentCore-2b6a43bc5a5ebcb2e46fad395c2778b27d0bdb01.zip | |
Closed https://github.com/DiligentGraphics/DiligentCore/issues/15
Fixed issue with mapping dynamic buffer in Vk
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 5c3d19ee..71648849 100644 --- a/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp +++ b/Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp @@ -1318,7 +1318,7 @@ namespace Diligent } else if (BuffDesc.Usage == USAGE_DYNAMIC) { - DEV_CHECK_ERR((MapFlags & (MAP_FLAG_DISCARD | MAP_FLAG_DO_NOT_SYNCHRONIZE)) == 0, "Failed to map buffer '", + DEV_CHECK_ERR((MapFlags & (MAP_FLAG_DISCARD | MAP_FLAG_DO_NOT_SYNCHRONIZE)) != 0, "Failed to map buffer '", BuffDesc.Name, "': Vk buffer must be mapped for writing with MAP_FLAG_DISCARD or MAP_FLAG_DO_NOT_SYNCHRONIZE flag. Context Id: ", m_ContextId); auto& DynAllocation = pBufferVk->m_DynamicAllocations[m_ContextId]; |
