summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsTools
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2018-12-02 18:22:22 +0000
committerEgor Yusov <egor.yusov@gmail.com>2018-12-02 18:22:22 +0000
commit111636445d2e19420468cdf78ffd2b87b7ad6489 (patch)
treeadb5457b4f0cd56a323c99f1cedc5a2fce0667ee /Graphics/GraphicsTools
parentAdded explicit state transition control to UpdateBuffer and UpdateTexture com... (diff)
downloadDiligentCore-111636445d2e19420468cdf78ffd2b87b7ad6489.tar.gz
DiligentCore-111636445d2e19420468cdf78ffd2b87b7ad6489.zip
Brought back MapType paramter to UnmapBuffer() function. The performance hit of keeping track of mapped buffers turned out to be unacceptable
Diffstat (limited to 'Graphics/GraphicsTools')
-rw-r--r--Graphics/GraphicsTools/src/TextureUploaderGL.cpp2
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();