layers: Validate subpass index in CreateGraphicsPipelines
authorChris Forbes <chrisforbes@google.com>
Thu, 3 Mar 2016 22:52:03 +0000 (11:52 +1300)
committerTobin Ehlis <tobine@google.com>
Mon, 7 Mar 2016 14:12:23 +0000 (07:12 -0700)
commit97b1b117e0e1224bf49d94820f5ddadc855e6c13
tree7ceb4ded17919856d374d1b2a805a47507517843
parent62147617e0011a0d53d106b97402e140abed5004
layers: Validate subpass index in CreateGraphicsPipelines

Not validating this upfront meant that users got really weird errors
about mismatches between their FS outputs and color attachments. Now
they should hit the real problem first.

Fixes GH #75

V2: Run through git-clang-format.

Signed-off-by: Chris Forbes <chrisforbes@google.com>
layers/draw_state.cpp