[Fix] (Types, GL_Texture): Memcpy insanity, proxy texture fix

This commit is contained in:
2025-10-28 11:49:08 +08:00
parent bd01e4f99d
commit 7151080a67
4 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -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);