demos: Fix a few layout transition bugs in cube
authorTobin Ehlis <tobine@google.com>
Fri, 12 Feb 2016 00:49:23 +0000 (17:49 -0700)
committerTobin Ehlis <tobine@google.com>
Fri, 12 Feb 2016 00:51:39 +0000 (17:51 -0700)
commitf07d955798b46fd594f09ad82d24ee358f0b25d3
tree0421f008ab033fd612acad50d7ad6465a86be714
parent67eabc555e4137cf58d1dac9967a1d2d462355c6
demos: Fix a few layout transition bugs in cube

Re-enabled layout validation in draw_state revealed a few bugs in cube. This change fixes those bugs by starting tex image in PREINITIALIZED state with the HOST_WRITE_BIT set.
demos/cube.c