MCPcopy Create free account
hub / github.com/comaps/comaps / ~GPUBuffer

Method ~GPUBuffer

libs/drape/gpu_buffer.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 Resize(data, capacity);
49}
50GPUBuffer::~GPUBuffer()
51{
52 GLFunctions::glBindBuffer(0, glTarget(m_t));
53 GLFunctions::glDeleteBuffer(m_bufferID);
54
55#if defined(TRACK_GPU_MEM)
56 dp::GPUMemTracker::Inst().RemoveDeallocated("VBO", m_bufferID);
57#endif
58}
59
60void GPUBuffer::UploadData(void const * data, uint32_t elementCount)
61{

Callers

nothing calls this directly

Calls 2

glTargetFunction · 0.85
RemoveDeallocatedMethod · 0.80

Tested by

no test coverage detected