egl_dri2: Always unbind old contexts
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Wed, 9 Feb 2011 20:19:45 +0000 (21:19 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 11 Feb 2011 04:07:01 +0000 (23:07 -0500)
commit4e8f95f64d004aa1278609c5bbac9a53c0c6e4c9
treee9c1bc3763bb4a17cfcbbc4dba9b8417927ff40d
parent87dde5b1cd596c4008695ff2db9469f88c09f925
egl_dri2: Always unbind old contexts

This fixes __DRIdrawable refcounting.
Binding a context increases their refcount,
so we need to decrease it.
src/egl/drivers/dri2/egl_dri2.c