mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-22 10:22:52 +01:00
Use memcpy instead of mempcpy as mempcpy is glibc-specific.
This fixes #324 on macOS. The only difference between memcpy and mempcpy is that mempcpy returns a pointer one after the last written byte - the return value is unused.
This commit is contained in:
parent
8e86786e5b
commit
a347c07961
@ -400,7 +400,7 @@ void OpenGLRenderer::uploadUBOEntry(Buffer &buffer, const void *data, size_t siz
|
||||
void* dst = glMapBufferRange(GL_UNIFORM_BUFFER, offset,
|
||||
buffer.entrySize, flags);
|
||||
RW_ASSERT(dst != nullptr);
|
||||
mempcpy(dst, data, size);
|
||||
memcpy(dst, data, size);
|
||||
glUnmapBuffer(GL_UNIFORM_BUFFER);
|
||||
glBindBufferRange(GL_UNIFORM_BUFFER, kUBOIndexDraw, buffer.name, offset, size);
|
||||
buffer.currentEntry++;
|
||||
|
Loading…
Reference in New Issue
Block a user