Skip to content
Snippets Groups Projects
Commit 91ab1e69 authored by Ansgar Philippsen's avatar Ansgar Philippsen
Browse files

fixed a small bug in gradient

parent 387515d0
Branches
Tags
No related merge requests found
......@@ -70,7 +70,7 @@ Color Gradient::GetColorAt(float t) const
}
uint c=0;
while (t>=stops_[c].t && c<stops_.size()) {
while (c<stops_.size() && t>=stops_[c].t) {
++c;
}
if (c==0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment