| 48 | Resize(data, capacity); |
| 49 | } |
| 50 | GPUBuffer::~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 | |
| 60 | void GPUBuffer::UploadData(void const * data, uint32_t elementCount) |
| 61 | { |
nothing calls this directly
no test coverage detected