Merge pull request #1139 from greg-lunarg/remap2
Remapper: Fix strip algo when strip ranges overlap
This commit is contained in:
commit
9f0b6fa4f0
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user