Unverified Commit 9f0b6fa4 by John Kessenich Committed by GitHub

Merge pull request #1139 from greg-lunarg/remap2

Remapper: Fix strip algo when strip ranges overlap
parents 88e22a60 e86b4c84
...@@ -1392,7 +1392,7 @@ namespace spv { ...@@ -1392,7 +1392,7 @@ namespace spv {
int strippedPos = 0; int strippedPos = 0;
for (unsigned word = 0; word < unsigned(spv.size()); ++word) { 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; ++strip_it;
if (strip_it == stripRange.end() || word < strip_it->first || word >= strip_it->second) if (strip_it == stripRange.end() || word < strip_it->first || word >= strip_it->second)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment