summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_rectangle.c
diff options
context:
space:
mode:
authorHermet Park <chuneon.park@samsung.com>2020-03-08 20:20:43 +0900
committerHermet Park <chuneon.park@samsung.com>2020-03-08 20:20:43 +0900
commitb2bd0c548f03b8178e40e0cfa6e9c31c4bff38b1 (patch)
treee6476ceed4526f3f8224a2b2cc0b56d52c97d049 /src/modules/evas/engines/gl_common/evas_gl_rectangle.c
parent7a79e15ea3c808b92482dbdecb294c6cf3212f91 (diff)
evas gl: clip rect with proper size.
gc width/height indicates the main output size, if the target surface(fbo) is larger than this, rect won't be drawn. We should clip this with current context size. @fix
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_rectangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_rectangle.c b/src/modules/evas/engines/gl_common/evas_gl_rectangle.c
index a188467b58..b070a7157a 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_rectangle.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_rectangle.c
@@ -12,7 +12,7 @@ evas_gl_common_rect_draw(Evas_Engine_GL_Context *gc, int x, int y, int w, int h)
12 Evas_GL_Texture *mtex = NULL; 12 Evas_GL_Texture *mtex = NULL;
13 13
14 if ((w <= 0) || (h <= 0)) return; 14 if ((w <= 0) || (h <= 0)) return;
15 if (!(RECTS_INTERSECT(x, y, w, h, 0, 0, gc->w, gc->h))) return; 15 if (!(RECTS_INTERSECT(x, y, w, h, 0, 0, gc->shared->w, gc->shared->h))) return;
16 /* save out clip info */ 16 /* save out clip info */
17 c = gc->dc->clip.use; cx = gc->dc->clip.x; cy = gc->dc->clip.y; cw = gc->dc->clip.w; ch = gc->dc->clip.h; 17 c = gc->dc->clip.use; cx = gc->dc->clip.x; cy = gc->dc->clip.y; cw = gc->dc->clip.w; ch = gc->dc->clip.h;
18 18