forked from enlightenment/efl
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:
parent
9b97c6cc43
commit
c874a32ba5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue