From fa00c4086caf30577e794f41c7b71901ff68d186 Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Mon, 27 Sep 2021 15:24:53 +0900 Subject: [PATCH] Revert "[Tizen] Fix SVACE issue at gles2-graphics-memory" This reverts commit 84f363ed84333948d97bac0b43809554c16c07d0. --- dali/internal/graphics/gles-impl/gles2-graphics-memory.cpp | 2 +- dali/internal/graphics/gles-impl/gles3-graphics-memory.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dali/internal/graphics/gles-impl/gles2-graphics-memory.cpp b/dali/internal/graphics/gles-impl/gles2-graphics-memory.cpp index 038410a..f4505d9 100644 --- a/dali/internal/graphics/gles-impl/gles2-graphics-memory.cpp +++ b/dali/internal/graphics/gles-impl/gles2-graphics-memory.cpp @@ -83,7 +83,7 @@ void Memory2::Unlock(bool flush) if(!buffer->IsCPUAllocated()) { buffer->Bind(BufferUsage::VERTEX_BUFFER); - gl->BufferSubData(GL_ARRAY_BUFFER, GLintptr(mMapBufferInfo.offset), GLsizeiptr(mMapBufferInfo.size), mMappedPointer); + gl->BufferSubData(GL_ARRAY_BUFFER, mMapBufferInfo.offset, GLsizeiptr(mMapBufferInfo.size), mMappedPointer); } } diff --git a/dali/internal/graphics/gles-impl/gles3-graphics-memory.cpp b/dali/internal/graphics/gles-impl/gles3-graphics-memory.cpp index 102d5e1..c2864c1 100644 --- a/dali/internal/graphics/gles-impl/gles3-graphics-memory.cpp +++ b/dali/internal/graphics/gles-impl/gles3-graphics-memory.cpp @@ -65,7 +65,7 @@ void* Memory3::LockRegion(uint32_t offset, uint32_t size) // @TODO: trashing vertex binding, better find target that is rarely used buffer->Bind(Graphics::BufferUsage::VERTEX_BUFFER); void* ptr = nullptr; - ptr = gl->MapBufferRange(GL_ARRAY_BUFFER, GLintptr(mMapBufferInfo.offset), GLsizeiptr(mMapBufferInfo.size), GL_MAP_WRITE_BIT); + ptr = gl->MapBufferRange(GL_ARRAY_BUFFER, mMapBufferInfo.offset, GLsizeiptr(mMapBufferInfo.size), GL_MAP_WRITE_BIT); mMappedPointer = ptr; } return mMappedPointer; -- 2.7.4