egl/dri3: don't crash on no context.
authorDave Airlie <airlied@gmail.com>
Sun, 29 May 2016 22:02:00 +0000 (08:02 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 30 May 2016 01:30:04 +0000 (11:30 +1000)
commitd98d6e6269167230d20efdc45d608435a52f25fb
tree96c42a12dcab57e3c6b730317a070a4b2b771eb0
parente2791b38b42f83add5b07298c39741bf0a6d7d4b
egl/dri3: don't crash on no context.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94925

Pointed out by Karol Herbst on irc.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/egl/drivers/dri2/platform_x11_dri3.c