diff options
| author | Mat M <mathew1800@gmail.com> | 2018-03-16 11:59:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-16 11:59:14 -0400 |
| commit | 9f4d5122a2a1b2d0dbfd6164a616d1c859ef0d0b (patch) | |
| tree | b1abde9e2426fee186ef9ae114d76e03ebaeae3e /Source/Core/VideoBackends/Vulkan/StreamBuffer.cpp | |
| parent | 1259370cdfcc23c0939bb72fb5dcf2e62096192f (diff) | |
| parent | 50a476c3714b3c423609ec04ce424c244bd2a1c1 (diff) | |
Merge pull request #6438 from lioncash/assert
Assert: Uppercase assertion macros
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/StreamBuffer.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/StreamBuffer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/StreamBuffer.cpp b/Source/Core/VideoBackends/Vulkan/StreamBuffer.cpp index 25aa9e3d07..b659eef0da 100644 --- a/Source/Core/VideoBackends/Vulkan/StreamBuffer.cpp +++ b/Source/Core/VideoBackends/Vulkan/StreamBuffer.cpp @@ -209,8 +209,8 @@ bool StreamBuffer::ReserveMemory(size_t num_bytes, size_t alignment, bool allow_ // Can we find a fence to wait on that will give us enough memory? if (allow_reuse && WaitForClearSpace(required_bytes)) { - _assert_(m_current_offset == m_current_gpu_position || - (m_current_offset + required_bytes) < m_current_gpu_position); + ASSERT(m_current_offset == m_current_gpu_position || + (m_current_offset + required_bytes) < m_current_gpu_position); m_current_offset = Util::AlignBufferOffset(m_current_offset, alignment); m_last_allocation_size = num_bytes; return true; @@ -232,8 +232,8 @@ bool StreamBuffer::ReserveMemory(size_t num_bytes, size_t alignment, bool allow_ void StreamBuffer::CommitMemory(size_t final_num_bytes) { - _assert_((m_current_offset + final_num_bytes) <= m_current_size); - _assert_(final_num_bytes <= m_last_allocation_size); + ASSERT((m_current_offset + final_num_bytes) <= m_current_size); + ASSERT(final_num_bytes <= m_last_allocation_size); // For non-coherent mappings, flush the memory range if (!m_coherent_mapping) |
