aboutsummaryrefslogtreecommitdiffstats
path: root/emulator
diff options
context:
space:
mode:
Diffstat (limited to 'emulator')
-rw-r--r--emulator/opengl/host/libs/Translator/GLcommon/RangeManip.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/emulator/opengl/host/libs/Translator/GLcommon/RangeManip.cpp b/emulator/opengl/host/libs/Translator/GLcommon/RangeManip.cpp
index 5ba609b..2d6f119 100644
--- a/emulator/opengl/host/libs/Translator/GLcommon/RangeManip.cpp
+++ b/emulator/opengl/host/libs/Translator/GLcommon/RangeManip.cpp
@@ -35,13 +35,14 @@ bool Range::rangeUnion(const Range& r,Range& rOut) const {
int size = max_end - min_start;
if(size) {
rOut.setRange(min_start,max_end-min_start);
- return false;
+ return true;
}
return false;
}
void RangeList::addRange(const Range& r) {
- list.push_back(r);
+ if(r.getSize())
+ list.push_back(r);
}
void RangeList::addRanges(const RangeList& rl) {