projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Shorten u_queue names
[mesa.git]
/
src
/
gallium
/
auxiliary
/
util
/
u_rect.h
diff --git
a/src/gallium/auxiliary/util/u_rect.h
b/src/gallium/auxiliary/util/u_rect.h
index dea1e1ecff38406b188bb4da944c1852ee5fca3e..221d9188730eaa98af9ac7d4b53f6212578c4b7b 100644
(file)
--- a/
src/gallium/auxiliary/util/u_rect.h
+++ b/
src/gallium/auxiliary/util/u_rect.h
@@
-87,7
+87,12
@@
u_rect_possible_intersection(const struct u_rect *a,
u_rect_find_intersection(a,b);
}
else {
- b->x0 = b->x1 = b->y0 = b->y1 = 0;
+ /*
+ * Note the u_rect_xx tests deal with inclusive coordinates
+ * hence all-zero would not be an empty box.
+ */
+ b->x0 = b->y0 = 0;
+ b->x1 = b->y1 = -1;
}
}