layers:Mark latest buffers and images as written
authorTobin Ehlis <tobine@google.com>
Wed, 28 Dec 2016 21:24:47 +0000 (14:24 -0700)
committerTobin Ehlis <tobine@google.com>
Wed, 28 Dec 2016 22:31:57 +0000 (15:31 -0700)
commit8afa3d77d559e2fc745fdf2220254b20169f6941
tree49d14a54a4e1eca69802cce0cfde12a3ab0d072c
parent9649e5c70c02fb618389f1be4c1d3e68b2c0b25a
layers:Mark latest buffers and images as written

Fixes #1311

In the Draw-time refactor the marking of store images and buffers as
written was incorrectly moved before the list of images and buffers was
updated for the current active bindings.

This fix restores correct order of operations so that the buffers and
images of interest are first added to cmd buffer active list, then
they're appropriately updated as written.
layers/core_validation.cpp