[cairo] PNG surface not showing on EGL/GLES2
tarnyko at tarnyko.net
Fri Sep 20 02:03:42 PDT 2013
I'm currently testing Cairo on Wayland using only native technologies (no
GLX/GL/XWayland, only EGL/GLES2).
I wrote the following sample code, which compiles and runs fine with Wayland
Problem is : on the screen, only the red rectangle shows. The PNG image,
which is supposed to be blitted and displayed too, is never shown.
So basically the following section works :
cairo_set_source_rgb (cr, 1, 0, 0);
cairo_rectangle (cr, 0, 0, 320, 240);
but the other one doesn't :
image = cairo_image_surface_create_from_png ("monimage.png");
cairo_set_source_surface (cr, image, 0, 0);
I have a very similar code working on Android using native ImageSurfaces.
So, what's the problem ? A bug, a mistake I made, or maybe the feature is
not present using GL backend ?
Thanks for your time.
More information about the cairo