glx: Don't allow glXMakeContextCurrent() with only one valid drawable
authorAdam Jackson <ajax@redhat.com>
Fri, 6 Jul 2018 18:59:21 +0000 (14:59 -0400)
committerAdam Jackson <ajax@redhat.com>
Mon, 9 Jul 2018 16:03:18 +0000 (12:03 -0400)
commitd257ec01360be05a745bbb851f08e944bcb23718
tree7f4c9b84ad64a0109a5e6c07451e8f9eb6e2dcb3
parentaf6b7bf23662c610e699e4b7fde1526ca1d1624a
glx: Don't allow glXMakeContextCurrent() with only one valid drawable

Drawable and readable need to either both be None or both be non-None.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glx/glxcurrent.c