From: subhransu mohanty Date: Wed, 7 Dec 2016 07:21:30 +0000 (+0900) Subject: evas/engine: keep the default surface size updated in gl. X-Git-Tag: accepted/tizen/common/20170102.152350~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=977f58821bb3045fb6822356cb4e06fd407f082b;p=platform%2Fupstream%2Fefl.git evas/engine: keep the default surface size updated in gl. Change-Id: I92d6a4dfb02cf942473723858e6112da2ca02476 --- diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c b/src/modules/evas/engines/gl_common/evas_gl_context.c index 8bb8037..d252ba4 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_context.c +++ b/src/modules/evas/engines/gl_common/evas_gl_context.c @@ -1205,6 +1205,11 @@ EAPI void evas_gl_common_context_resize(Evas_Engine_GL_Context *gc, int w, int h, int rot, int force_update) { if (!gc) return; + + // update default surface size + gc->def_surface->w = w; + gc->def_surface->h = h; + if ((!force_update) && (gc->w == w) && (gc->h == h) && (gc->rot == rot)) return; evas_gl_common_context_flush(gc); gc->rot = rot;