elm_glview: Call resize func whenever the surface is updated

This will allow apps to set the proper viewport, even if the
actual surface geometry didn't change.

This fixes a rare situation where the mode is changed from indirect
to direct (eg. in elm_test glview).
This commit is contained in:
Jean-Philippe Andre 2015-04-06 22:44:30 +09:00
parent 9b97c6cc43
commit c874a32ba5
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ _glview_update_surface(Evas_Object *obj)
evas_gl_native_surface_get(sd->evasgl, sd->surface, &ns);
evas_object_image_native_surface_set(wd->resize_obj, &ns);
elm_glview_changed_set(obj);
// fake a resize event so that clients can reconfigure their viewport
sd->resized = EINA_TRUE;
}
EOLIAN static void