This commit is contained in:
ExMix 2014-04-10 16:10:49 +03:00 committed by Alex Zolotarev
parent cc0787c79f
commit 6484ef4cc9

View file

@ -134,7 +134,7 @@ namespace graphics
else
{
m_isUsingMapBuffer = false;
OGLCHECK(glBufferSubDataFn(m_target, 0, m_size, m_gpuData));
OGLCHECK(glBufferDataFn(m_target, m_size, m_gpuData, GL_DYNAMIC_DRAW));
SharedBufferManager::instance().freeSharedBuffer(m_size, m_sharedBuffer);
m_sharedBuffer.reset();
}