egl/dri2: Fix a weird conditional in dri2_make_current
authorAdam Jackson <ajax@redhat.com>
Tue, 20 Sep 2022 21:50:42 +0000 (17:50 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 27 Sep 2022 16:00:45 +0000 (16:00 +0000)
commit71224789cf408c97b39eb9581e149d1b9d178700
treef0b56261732e7a9519ddc6ecce5cc71fd3913e53
parent04826cd9fc83365e99db3a491254a8d5a6eaac63
egl/dri2: Fix a weird conditional in dri2_make_current

It's not valid to get here with no context but with real surfaces.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18824>
src/egl/drivers/dri2/egl_dri2.c