We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5af4ac commit ad22fa0Copy full SHA for ad22fa0
Graphics/GraphicsTools/src/DynamicBuffer.cpp
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2019-2024 Diligent Graphics LLC
+ * Copyright 2019-2026 Diligent Graphics LLC
3
* Copyright 2015-2019 Egor Yusov
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -161,7 +161,7 @@ void DynamicBuffer::InitBuffer(IRenderDevice* pDevice)
161
}
162
163
// NB: m_Desc.Usage may be changed by CreateSparseBuffer()
164
- if (m_Desc.Usage == USAGE_DEFAULT && m_PendingSize > 0)
+ if (m_Desc.Usage != USAGE_SPARSE && m_PendingSize > 0)
165
{
166
BufferDesc Desc = m_Desc;
167
Desc.Size = m_PendingSize;
0 commit comments