From: Eunki Hong Date: Thu, 16 Sep 2021 09:23:17 +0000 (-0700) Subject: [Tizen] Fix SVACE issue at gles2-graphics-memory X-Git-Tag: accepted/tizen/6.5/unified/20211028.114010~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=84f363ed84333948d97bac0b43809554c16c07d0;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git [Tizen] Fix SVACE issue at gles2-graphics-memory castring between uint32_t --> long Change-Id: I7831a10724a06dc75d83cbf6061f734afd40b1d9 Signed-off-by: Eunki Hong --- diff --git a/dali/internal/graphics/gles-impl/gles2-graphics-memory.cpp b/dali/internal/graphics/gles-impl/gles2-graphics-memory.cpp index f4505d9..038410a 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, mMapBufferInfo.offset, GLsizeiptr(mMapBufferInfo.size), mMappedPointer); + gl->BufferSubData(GL_ARRAY_BUFFER, GLintptr(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 c2864c1..102d5e1 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, mMapBufferInfo.offset, GLsizeiptr(mMapBufferInfo.size), GL_MAP_WRITE_BIT); + ptr = gl->MapBufferRange(GL_ARRAY_BUFFER, GLintptr(mMapBufferInfo.offset), GLsizeiptr(mMapBufferInfo.size), GL_MAP_WRITE_BIT); mMappedPointer = ptr; } return mMappedPointer;