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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 7 03:16:16 PDT 2013


--- Comment #12 from José Fonseca <jfonseca at vmware.com> ---
(In reply to comment #7)
> (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.  

Sounds good then.

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/20130607/da31d71e/attachment.html>

More information about the mesa-dev mailing list