Fix memory leak during vertex picking in mesh viewer

Deallocate temporary memory for vertex indices,
referenced by raw pointer
This commit is contained in:
Max
2026-02-03 20:49:04 +09:00
committed by Baldur Karlsson
parent 1a3a79da09
commit 95fd419d66
+2
View File
@@ -2794,6 +2794,8 @@ uint32_t GLReplay::PickVertex(uint32_t eventId, int32_t width, int32_t height,
drv.glBindBuffer(eGL_SHADER_STORAGE_BUFFER, DebugData.pickIBBuf);
drv.glBufferSubData(eGL_SHADER_STORAGE_BUFFER, 0, numIndices * sizeof(uint32_t), outidxs.data());
delete[] idxs;
}
// unpack and linearise the data