[Mesa-dev] [Bug 65426] openGL glDeleteBuffers does not delete buffers created using glGenBuffers

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 6 12:05:28 PDT 2013


--- Comment #7 from Brian Paul <brianp at vmware.com> ---
(In reply to comment #6)
> (In reply to comment #5)
> > Is this really a problem? Mesa might not always reuse buffer names, but that
> > does not mean the buffer wasn't properly deleted. As far as I can see,
> > OpenGL does not require name reuse.
> It's standard compliant, but it sounds like a symptom of a leak.

It's actually not a leak.  glGenTextures/Buffers/Framebuffers(), etc call the
_mesa_HashFindFreeKeyBlock() function.  For speed, it simply returns the next
previously unused integer.  If we'd ever hit 0xffffffff (or whatever the new
hash table's limit is) we'd resort to searching the hash table for a lower,
unused ID.  I doubt that any app/test has ever exercised that case though...

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130606/56b059b7/attachment.html>

More information about the mesa-dev mailing list