render: gl-renderer: fix clipping condition in polygon clipping
authorJunghoon <jh13.son@samsung.com>
Mon, 9 Nov 2015 04:23:57 +0000 (13:23 +0900)
committerGerrit Code Review <root@ap3>
Mon, 9 Nov 2015 05:02:21 +0000 (14:02 +0900)
Change-Id: I40c4852975173edb5c96f0faf21c52fb0c823339

src/lib/render/gl-renderer.c

index 2d002b2..4b7aab6 100644 (file)
@@ -860,8 +860,8 @@ clip(pepper_vec2_t *vertices, int *len, pixman_box32_t *clip_rect, pepper_bool_t
     {
         int i;
 
-        if ((vertices[0].x > clip_rect->x2) || (vertices[2].x < clip_rect->x1) ||
-            (vertices[0].y > clip_rect->y2) || (vertices[2].y < clip_rect->y1))
+        if ((vertices[0].x >= clip_rect->x2) || (vertices[2].x <= clip_rect->x1) ||
+            (vertices[0].y >= clip_rect->y2) || (vertices[2].y <= clip_rect->y1))
         {
             *len = 0;
             return;