draw_state: Fix Microsoft C++ assert
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Mon, 27 Apr 2015 17:16:35 +0000 (11:16 -0600)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Wed, 29 Apr 2015 17:25:22 +0000 (11:25 -0600)
commitcf2a5369d8d3c456ceedfd6208c70ef24dfbb709
tree20a24839520998d53ed53e5fc20007fbd931a554
parent6532d8ebc2170feedfbacfbc9ac8fe788b7d7cbd
draw_state: Fix Microsoft C++ assert

The C++ runtime library was issuing an assert on the following line:
for (vector<CMD_NODE*>::iterator ii=pCB->pCmds.begin(); ii!=pCB->pCmds.end(); ++ii) {

It was complaining that the iterator ii was not compatible with the
pCmds.end(). Tracing down the assert, the C++ library did not like the
fact that we were accessing pCmds through a pointer (pCB). If we made a
local copy of the pCmds vector the assert went away.
layers/draw_state.cpp