Switches stl copy in bufferSubData for a memcpy

TRAC #12215 Signed-off-by: Nicolas Capens Signed-off-by: Daniel Koch Author: Shannon Woods git-svn-id: https://angleproject.googlecode.com/svn/trunk@287 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 202ff653
......@@ -72,7 +72,7 @@ GLenum Buffer::bufferSubData(const void* data, GLsizeiptr size, GLintptr offset)
if (size + offset > static_cast<GLsizeiptr>(mContents.size())) return GL_INVALID_VALUE;
const GLubyte *newdata = static_cast<const GLubyte*>(data);
copy(newdata, newdata + size, mContents.begin() + offset);
memcpy(&mContents[offset], newdata, size);
return GL_NO_ERROR;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment