Open GEMISIS opened 9 years ago
Hi @gemisis I'm looking into this one shortly, I would expect the fix in the new few days, thanks for the heads up :+1:
Is there any news on this?
_Bump_
Got the exactly same issue. I think I inserted the leak while changing my code, so it might be how you make these operations, but no confirmation.
Got the exactly same issue with 3.1.1 version. If I pass geometry dinamically the memory continue to increase very fast. You can reproduce the issue using ModernOpenGLSample and recalling the method scene.CreateVerticesForSquare() before Draw().
maybe buffers should be deleted, in this case VertexBuffer should include a method like this:
public void Delete(OpenGL gl) { gl.DeleteBuffers(1, new uint[1] { vertexBufferObject }); }
The IndexBuffer, VertexBuffer, and VertexBufferArray classes do not seem to be releasing their memory that is allocated with the GenBuffers method, resulting in large memory consumption and applications crashing after a certain amount of time..