GLX: don't crash when indirect clients try to set an event mask
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 3 May 2011 17:20:14 +0000 (10:20 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 4 May 2011 21:08:48 +0000 (14:08 -0700)
commit6ae9e8cbabdc8a18a821ea3f716b18b3eb82a495
tree8c014701e23d64c98fae75f63e6d70387cb5a420
parent37058c3497850f452bdaf70a5dda07ee4840b6b9
GLX: don't crash when indirect clients try to set an event mask

After sending the GLXChangeDrawableAttributes request, we also set a
local set of attributes on the DRI drawable.  But in the indirect case
this array won't be present, so skip the setting in that case to avoid a
crash.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
src/glx/glx_pbuffer.c