evas/engine: keep the default surface size updated in gl.
authorsubhransu mohanty <smohantty@gmail.com>
Wed, 7 Dec 2016 07:21:30 +0000 (16:21 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 07:23:59 +0000 (16:23 +0900)
Change-Id: I92d6a4dfb02cf942473723858e6112da2ca02476

src/modules/evas/engines/gl_common/evas_gl_context.c

index 8bb8037..d252ba4 100644 (file)
@@ -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;