#include <dali/integration-api/gl-defines.h>
// INTERNAL INCLUDES
+#include <dali/internal/graphics/common/graphics-interface.h>
#include "egl-graphics-controller.h"
namespace Dali::Graphics::GLES
if(buffer->IsCPUAllocated())
{
- using Ptr = char*;
- return Ptr(buffer->GetCPUAllocatedAddress()) + offset;
+ using Ptr = char*;
+ mMappedPointer = Ptr(buffer->GetCPUAllocatedAddress()) + offset;
}
else
{
// @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, 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;
{
Flush();
}
+
+ mMappedPointer = nullptr;
}
void Memory3::Flush()
// TODO:
}
-} // namespace Dali::Graphics::GLES
\ No newline at end of file
+} // namespace Dali::Graphics::GLES