From: Junghoon Date: Thu, 24 Sep 2015 04:46:39 +0000 (+0900) Subject: render: gl-renderer: bugfix. correct vertex index for glDrawArrays() X-Git-Tag: accepted/tizen/mobile/20151221.050925~34^2~111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c4186abf633021ccaab40a6d5f5efb4d16dc2045;p=platform%2Fcore%2Fuifw%2Fpepper.git render: gl-renderer: bugfix. correct vertex index for glDrawArrays() Change-Id: Ia1647860b70fd1cc7d3bfbb1a910143059e5d621 --- diff --git a/src/lib/render/gl-renderer.c b/src/lib/render/gl-renderer.c index faef587..0454ec0 100644 --- a/src/lib/render/gl-renderer.c +++ b/src/lib/render/gl-renderer.c @@ -886,7 +886,7 @@ repaint_view(pepper_renderer_t *renderer, pepper_output_t *output, { glScissor(rects[i].x1, gt->height - rects[i].y2, rects[i].x2 - rects[i].x1, rects[i].y2 - rects[i].y1); - glDrawArrays(GL_TRIANGLE_FAN, 4 * i, 4); + glDrawArrays(GL_TRIANGLE_FAN, 0, 4); } done: