diff options
Diffstat (limited to 'Graphics/GraphicsTools')
| -rw-r--r-- | Graphics/GraphicsTools/src/TextureUploaderGL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Graphics/GraphicsTools/src/TextureUploaderGL.cpp b/Graphics/GraphicsTools/src/TextureUploaderGL.cpp index 01ce8fc2..c1d4ccf8 100644 --- a/Graphics/GraphicsTools/src/TextureUploaderGL.cpp +++ b/Graphics/GraphicsTools/src/TextureUploaderGL.cpp @@ -200,7 +200,7 @@ namespace Diligent case InternalData::PendingBufferOperation::Copy: { - pContext->UnmapBuffer(pBuffer->m_pStagingBuffer); + pContext->UnmapBuffer(pBuffer->m_pStagingBuffer, MAP_WRITE); TextureSubResData SubResData(pBuffer->m_pStagingBuffer, static_cast<Uint32>(pBuffer->GetRowStride())); Box DstBox; const auto &TexDesc = OperationInfo.pDstTexture->GetDesc(); |
