egl/dri2: rework dri2_make_current code flow
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 16 Aug 2016 12:47:25 +0000 (13:47 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 11:17:18 +0000 (12:17 +0100)
commit675719817e7bf7c5b9da22c02252aca77a41338d
tree5ff8b0cb984328d399aaecef07b5b1ebe5b2e025
parent07690a289a60f9b12cde59affefeed9e05864dd7
egl/dri2: rework dri2_make_current code flow

Fold duplicate conditional blocks and add a few extra comments ;-)

v2: Bring back the explicit "unbind" logic (Eric), remove NULL derefs.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/egl_dri2.c