dri3: Guard against buggy clients
authorAdam Jackson <ajax@redhat.com>
Fri, 13 Dec 2013 16:28:59 +0000 (11:28 -0500)
committerAdam Jackson <ajax@redhat.com>
Fri, 13 Dec 2013 19:58:40 +0000 (14:58 -0500)
commite6fafd3de70d315130fb6e5732cfd02a5901b788
tree66422ef2448c20e37667e1222b5e5513871f1ece
parentfe07ec19e212a68076560d243a2a935c54589068
dri3: Guard against buggy clients

There's nothing to stop a client from sending these requests to screens
without DRI3 support, and if they do, we'll crash.  Let's not do that.

Reviewed-by: Jasper St. Pierre <<jstpierre@mecheye.net>
Signed-off-by: Adam Jackson <ajax@redhat.com>
dri3/dri3_screen.c