mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-04-18 08:30:50 +02:00
subsurfaces: fix rendering problem with cairo-glesv2
when using cairo-glesv2 subsurface rendering code implicitly calls eglMakeCurrent(dpy, NULL, NULL, ctx) (since EGL_KHR_surfaceless_context is used), thus, triangle_frame_callback:eglSwapBuffers returns EGL_BAD_SURFACE error for all invocations other that the first one
This commit is contained in:
parent
f66f99d9db
commit
6346e501ac
1 changed files with 3 additions and 0 deletions
|
|
@ -398,6 +398,9 @@ triangle_frame_callback(void *data, struct wl_callback *callback,
|
|||
if (callback)
|
||||
wl_callback_destroy(callback);
|
||||
|
||||
eglMakeCurrent(tri->egl->dpy, tri->egl_surface,
|
||||
tri->egl_surface, tri->egl->ctx);
|
||||
|
||||
glViewport(0, 0, tri->width, tri->height);
|
||||
|
||||
triangle_draw(&tri->gl, tri->time);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue