[Mesa-dev] [PATCH] r600g: Don't blindly unmap NULL->size.

tom fogal tfogal at sci.utah.edu
Mon Aug 16 13:49:12 PDT 2010


Henri Verbeet <hverbeet at gmail.com> writes:
> Should it ever be valid to destroy a bo that's still mapped in the
> first place though?

In 2.9.2:

  If a buffer object is deleted while it is bound, all bindings to
  that object in the current context (i.e. in the thread that called
  DeleteBuffers) are reset to zero.  Bindings to that buffer in other
  contexts and other threads are not affected, but attempting to use
  a deleted buffer in another thread produces undefined results,
  including but not limited to possible GL errors and rendering
  corruption. Using a deleted buffer in another context or thread may
  not, however, result in program termination.

  -- OGL 4.0 spec

-tom


More information about the mesa-dev mailing list