diff options
author | Alessandro Pignotti <alexpigna.dev@gmail.com> | 2013-07-30 11:03:55 +0200 |
---|---|---|
committer | Alessandro Pignotti <a.pignotti@sssup.it> | 2013-07-30 17:43:45 +0200 |
commit | 69f2fc8e6b4017605086aeab45bf1ad61bb66c7d (patch) | |
tree | 8fdf214d495dc9d6f4a7ad46d39902a03787ae29 /emulator/opengl/host | |
parent | da87b5727ac72b524b381a2801a5a5f52024f2b1 (diff) | |
download | sdk-69f2fc8e6b4017605086aeab45bf1ad61bb66c7d.zip sdk-69f2fc8e6b4017605086aeab45bf1ad61bb66c7d.tar.gz sdk-69f2fc8e6b4017605086aeab45bf1ad61bb66c7d.tar.bz2 |
Ignore empty ranges
Change-Id: I0cccba6795e3b9709cc646f6fa55bb60e6446ea1
Diffstat (limited to 'emulator/opengl/host')
-rw-r--r-- | emulator/opengl/host/libs/Translator/GLcommon/RangeManip.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/emulator/opengl/host/libs/Translator/GLcommon/RangeManip.cpp b/emulator/opengl/host/libs/Translator/GLcommon/RangeManip.cpp index 4b88a99..2d6f119 100644 --- a/emulator/opengl/host/libs/Translator/GLcommon/RangeManip.cpp +++ b/emulator/opengl/host/libs/Translator/GLcommon/RangeManip.cpp @@ -41,7 +41,8 @@ bool Range::rangeUnion(const Range& r,Range& rOut) const { } void RangeList::addRange(const Range& r) { - list.push_back(r); + if(r.getSize()) + list.push_back(r); } void RangeList::addRanges(const RangeList& rl) { |