demos: ensure DISPLAY envar is valid
authorMike Weiblen <mikew@lunarg.com>
Tue, 13 Feb 2018 20:56:13 +0000 (13:56 -0700)
committerMike Weiblen <mikew@lunarg.com>
Mon, 19 Feb 2018 19:03:24 +0000 (12:03 -0700)
commitef2947b52c22acd5c1956cac71845dc6778d5dc3
treee155a256407f3ac2ced95b068144b5752e2b310d
parent2c4f591dd2bd2df81ff0dd00fa700654a4e8329b
demos: ensure DISPLAY envar is valid

If the DISPLAY environment variable is unset or null, the cube demo will
emit "Cannot find a compatible Vulkan installable client driver (ICD)."
That message is not helpful when attempting to resolve the issue, since
the problem is with the envar, not the ICD.

Change-Id: Idf145cf0da906a4a8352b5bb136f88d9c1bca90d
demos/cube.c
demos/cube.cpp