layers: Split validation/state updates for clears
authorMark Lobodzinski <mark@lunarg.com>
Tue, 31 Jan 2017 22:11:38 +0000 (15:11 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Wed, 1 Feb 2017 14:30:11 +0000 (07:30 -0700)
commitd65a75092728753fbb13754bfe2de56473f082f6
tree72e796d4fa6d9117f07b4831c13f563cd7bbd9bc
parentecb7924583c847193f78927a682b6e68b478084a
layers: Split validation/state updates for clears

CmdClearColorImage and CmdClearDepthStencilImage routines mixed
validation and state updates.  Separated these and made the state
updates conditional on passing validation.

Change-Id: Ib710e91a038f7a0307d30218a49db1bf49bb8187
layers/core_validation.cpp