Skip to content

Commit 35af49d

Browse files
committed
fix IDeviceMemoryAllocation::map bug with setting m_currentMappingAccess
1 parent bca9f86 commit 35af49d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/video/IDeviceMemoryAllocation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class IDeviceMemoryAllocation : public virtual core::IReferenceCounted
114114
if (m_mappedPtr)
115115
m_mappedPtr -= range.offset;
116116
m_mappedRange = m_mappedPtr ? range:MemoryRange{};
117-
m_currentMappingAccess = m_mappedPtr ? EMCAF_NO_MAPPING_ACCESS:accessHint;
117+
m_currentMappingAccess = m_mappedPtr ? accessHint : EMCAF_NO_MAPPING_ACCESS;
118118
return m_mappedPtr;
119119
}
120120
// returns true on success, false on failure

0 commit comments

Comments
 (0)