egl/dri2: don't require a context for ClientWaitSync (v2)
authorMarek Olšák <marek.olsak@amd.com>
Fri, 25 Sep 2015 20:48:00 +0000 (22:48 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 3 Oct 2015 20:06:08 +0000 (22:06 +0200)
commit18123a732b8593bb7add03d1529ace464f46a7ac
tree0530ddf4fa1efd9d9c066a573dc6daa652ca3a45
parentb78336085bce4d1f36c8d9c72fd3fa41643e3cd1
egl/dri2: don't require a context for ClientWaitSync (v2)

The spec doesn't require it. This fixes a crash on Android.

v2: don't set any flags if ctx == NULL
v3: add the spec note

Cc: 10.6 11.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Albert Freeman <albertwdfreeman@gmail.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
src/egl/drivers/dri2/egl_dri2.c