This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via b77f76c2f45a7e07893d88d7edf9016d35411f95 (commit) from 9e3d0f91aabd4b32abf770506e345424e39c4469 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/b77f76c2f45a7e07893d88d7edf9016d35411...
commit b77f76c2f45a7e07893d88d7edf9016d35411f95 Author: Jiri BlueBear Dluhos jiri.bluebear.dluhos@gmail.com Date: Sat Dec 8 15:47:22 2012 +0100
Suspicion of odd # of intersections; added assert.
diff --git a/libs/gfx/GP_Polygon.c b/libs/gfx/GP_Polygon.c index fb4b03f..0901922 100644 --- a/libs/gfx/GP_Polygon.c +++ b/libs/gfx/GP_Polygon.c @@ -156,6 +156,9 @@ void GP_FillPolygon_Raw(GP_Context *context, unsigned int vertex_count, int y; for (y = (int) ymin; y <= (int) ymax; y++) { int inter_count = GP_ComputeScanline(intersections, edges, vertex_count, y + 0.5f); + + GP_ASSERT(inter_count % 2 == 0, "odd number of intersections!"); + for (i = 0; i < inter_count; i+=2) { GP_HLine_Raw(context, intersections[i], intersections[i + 1], y, pixel); }
-----------------------------------------------------------------------
Summary of changes: libs/gfx/GP_Polygon.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.