summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-11-25 21:02:49 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-11-25 21:02:49 +0000
commit2b6a43bc5a5ebcb2e46fad395c2778b27d0bdb01 (patch)
tree7490f75975fb368e38f784c71c50b82daf498ca5 /Graphics/GraphicsEngineVulkan
parentRenamed/moved IBuffer::Map() to IDeviceContext::MapBuffer() (diff)
downloadDiligentCore-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.cpp2
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];