cube: Error handling improvements
authorRobert Morell <rmorell@nvidia.com>
Wed, 1 Feb 2017 22:51:00 +0000 (14:51 -0800)
committerTony-LunarG <tony@lunarg.com>
Thu, 2 Feb 2017 22:18:41 +0000 (15:18 -0700)
commit4ccc652a0656a09b5baf8b0723dd256ca8293a4d
treea83b40864605583712e02a30ccf5428418198dd6
parent4784a34467a3e077fc506769c1bc618095aaf84f
cube: Error handling improvements

- Add a newline to the end of the error message when printing to stdout
  for ERR_EXIT.
- Handle demo_read_spv failures by calling ERR_EXIT rather than just
  continuing on and calling the Vulkan library with a NULL pointer.
demos/cube.c
demos/cube.cpp