summaryrefslogtreecommitdiff
path: root/clients/subsurfaces.c
diff options
context:
space:
mode:
Diffstat (limited to 'clients/subsurfaces.c')
-rw-r--r--clients/subsurfaces.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clients/subsurfaces.c b/clients/subsurfaces.c
index 130fe4cf..663e1e1d 100644
--- a/clients/subsurfaces.c
+++ b/clients/subsurfaces.c
@@ -422,9 +422,9 @@ triangle_create_egl_surface(struct triangle *tri, int width, int height)
tri->wl_surface = widget_get_wl_surface(tri->widget);
tri->egl_window = wl_egl_window_create(tri->wl_surface, width, height);
- tri->egl_surface = weston_platform_create_egl_window(tri->egl->dpy,
- tri->egl->conf,
- tri->egl_window, NULL);
+ tri->egl_surface = weston_platform_create_egl_surface(tri->egl->dpy,
+ tri->egl->conf,
+ tri->egl_window, NULL);
ret = eglMakeCurrent(tri->egl->dpy, tri->egl_surface,
tri->egl_surface, tri->egl->ctx);