On 11/08/16 05:43 PM, Nicolas Boichat wrote: > eglMakeCurrent can also be used to change the active display. In that > case, we need to decrement ref_count of the previous display (possibly > destroying it), and increment it on the next display. > > Also, old_dsurf/old_rsurf cannot be non-NULL if old_ctx is NULL, so > we only need to test if old_ctx is non-NULL. > > v2: Save the old display before destroying the context. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97214 > Fixes: 9ee683f877 (egl/dri2: Add reference count for dri2_egl_display) > Cc: "12.0" <mesa-sta...@lists.freedesktop.org> > Reported-by: Alexandr Zelinsky <mexahota...@w1l.ru> > Tested-by: Alexandr Zelinsky <mexahota...@w1l.ru> > Signed-off-by: Nicolas Boichat <drink...@chromium.org>
Reviewed, tested and pushed. Thanks! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev