swrast: Fix eglMakeCurrent(dpy, NULL, NULL, ctx) (v2)
authorAdam Jackson <ajax@redhat.com>
Mon, 9 Jul 2018 16:51:37 +0000 (12:51 -0400)
committerAdam Jackson <ajax@redhat.com>
Mon, 9 Jul 2018 20:09:58 +0000 (16:09 -0400)
commitc1ec5820593184304d3ac3622b53f08ef610be4d
tree8e467e25f8306b0e90e699c96f17fa6d955a6677
parent7205bdf41f41fc3ec1c661a2974bb9c45631f042
swrast: Fix eglMakeCurrent(dpy, NULL, NULL, ctx) (v2)

Fixes 14 piglits, mostly in egl_khr_create_context.

v2: Also short-circuit the same-context-no-drawables case (Eric Anholt)

Fixes: https://github.com/anholt/libepoxy/issues/177
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
src/mesa/drivers/dri/swrast/swrast.c