aboutsummaryrefslogtreecommitdiff
path: root/layers/mem_tracker.cpp
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <courtney@LunarG.com>2015-04-27 15:04:43 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-04-29 11:25:22 -0600
commit769eeff3cfd22ae649199715f4c88af1cc5a818c (patch)
treea47f0a3cc3dc664fdcb4e1b04d53f84c48075a18 /layers/mem_tracker.cpp
parent60f084e5726a7b9dfd88d5b583ab48e526e80a63 (diff)
downloadusermoji-769eeff3cfd22ae649199715f4c88af1cc5a818c.tar.xz
draw_state: Fix Microsoft C++ iterator assert
The Microsoft Visual Studio vector library does not like this code: delete (*ii).second->pCmds.back(); Internally, pCmds.back() does a pCmds.end() - 1 and since the vector we are using (*ii).second->pCmds is not local, the library throws an assert about the iterator being non-incrementable. The assert if fixed by making a local copy of the vector and working on that.
Diffstat (limited to 'layers/mem_tracker.cpp')
0 files changed, 0 insertions, 0 deletions