Merge pull request #1139 from greg-lunarg/remap2

Remapper: Fix strip algo when strip ranges overlap
This commit is contained in:
John Kessenich
2017-11-02 21:53:25 -06:00
committed by GitHub

View File

@@ -1392,7 +1392,7 @@ namespace spv {
int strippedPos = 0;
for (unsigned word = 0; word < unsigned(spv.size()); ++word) {
if (strip_it != stripRange.end() && word >= strip_it->second)
while (strip_it != stripRange.end() && word >= strip_it->second)
++strip_it;
if (strip_it == stripRange.end() || word < strip_it->first || word >= strip_it->second)