mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-09 20:58:31 +09:00
[Fix] (Types, GL_Texture): Memcpy insanity, proxy texture fix
This commit is contained in:
@@ -111,7 +111,7 @@ namespace MobileGL::MG_Backend::DirectGLES {
|
||||
(invalidate ? GL_MAP_INVALIDATE_BUFFER_BIT : 0) | GL_MAP_WRITE_BIT | GL_MAP_UNSYNCHRONIZED_BIT);
|
||||
const void* data = stateBufferObject->GetDataReadOnly()->data();
|
||||
if (mappedData) {
|
||||
Memcpy(reinterpret_cast<const void*>(reinterpret_cast<const char*>(data) + range.start), mappedData,
|
||||
Memcpy(mappedData, ((const char*)(data) + range.start),
|
||||
range.end - range.start);
|
||||
MGLOG_D("Mapped buffer data successfully for object with ID: %u", m_backendBufferId);
|
||||
MG_External::GLES::glUnmapBuffer(TempBufferTarget);
|
||||
|
||||
Reference in New Issue
Block a user