https://bugs.freedesktop.org/show_bug.cgi?id=68378

          Priority: medium
            Bug ID: 68378
          Assignee: [email protected]
           Summary: subsurfaces demo should call eglMakeCurrent for
                    triangle subsurface
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: NEW
           Version: 1.0.x
         Component: weston
           Product: Wayland

When using cairo-gl non-triangle 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.

Workaround:
Add eglMakeCurrent(tri->egl->dpy, tri->egl_surface, tri->egl_surface,
tri->egl->ctx) before glViewport(0, 0, tri->width, tri->height) in
triangle_frame_callback

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Wayland-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to