[Mesa-dev] [PATCH 5/9] mesa: fix deletion of inactive bound transform feedback object

Matt Turner mattst88 at gmail.com
Mon May 4 15:54:48 PDT 2015

On Tue, Feb 24, 2015 at 10:02 AM, Eduardo Lima Mitev <elima at igalia.com> wrote:
> From: Samuel Iglesias Gonsalvez <siglesias at igalia.com>
> When a transform feedback object is bound and not active, the OpenGL ES
> 3.0 and GL_ARB_transform_feedback2 specs don't explicitly disallow its
> deletion. Only the deletion of the default framebuffer object is
> forbidden.
> This patch follows what it is done for glDeleteTextures(), i.e.
> the binding reverts to 0 (the default framebuffer object).

Is this necessary to make the test pass? I wouldn't have thought this
was correct, from the spec:

"If an active transform feedback object is deleted its name
immediately becomes unused, but the underlying object is not deleted
until it is no longer active"

I don't see any evidence that we should unbind it.

More information about the mesa-dev mailing list