Metal pool buffers

This commit is contained in:
Jack Andersen
2016-12-11 10:20:29 -10:00
parent c057068e64
commit 1177d50eda
3 changed files with 12 additions and 5 deletions

View File

@@ -739,7 +739,7 @@ IGraphicsBufferD* GLDataFactory::newPoolBuffer(IGraphicsBufferPool* p, BufferUse
{
GLPool* pool = static_cast<GLPool*>(p);
GLGraphicsBufferD* retval = new GLGraphicsBufferD(use, stride * count);
pool->m_DBufs.emplace(std::make_pair(retval, retval));
pool->m_DBufs.emplace(std::make_pair(retval, std::unique_ptr<GLGraphicsBufferD>(retval)));
return retval;
}