Constant buffer mapping returns non-const pointer

Former-commit-id: 37438d554d8733350fcecbbfc4ba0dad46256f73
This commit is contained in:
Lynix
2013-01-03 03:50:18 +01:00
parent 27dcd15d26
commit 1e5c34d53a
6 changed files with 6 additions and 6 deletions

View File

@@ -151,7 +151,7 @@ void* NzVertexBuffer::Map(nzBufferAccess access, unsigned int offset, unsigned i
return m_buffer->Map(access, m_startVertex+offset, (length) ? length : m_vertexCount-offset);
}
const void* NzVertexBuffer::Map(nzBufferAccess access, unsigned int offset, unsigned int length) const
void* NzVertexBuffer::Map(nzBufferAccess access, unsigned int offset, unsigned int length) const
{
#if NAZARA_UTILITY_SAFE
if (offset+length > m_vertexCount)