OSDN Git Service

vulkan/wsi/x11: don't crash on null visual
authorArda Coskunses <acoskunses@gmail.com>
Thu, 22 Dec 2016 21:55:03 +0000 (14:55 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 22 Dec 2016 22:09:34 +0000 (14:09 -0800)
commit01dd363e671ac3a457bc3ff60b43b04e108c33fc
treec76ae74b2ca2c78dd9022a402fdd2fdb7749293b
parent7a4ea95f1c5257e79a7a207eccff81c558c04d46
vulkan/wsi/x11: don't crash on null visual

When application window closed unexpectedly due to
lost window visualtypes getting invlaid parameters
which is causing a crash. Necessary check is added
to prevent the crash.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
src/vulkan/wsi/wsi_common_x11.c