Information required for cairo gl backend regarding CAIRO_OPERATOR_SOURCE

SUMIT PANWAR <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hi,


We are writing some test cases to compare cairo gl backend with cairo image backend.


1) Image clipping does not work for CAIRO_OPERATOR_SOURCE.


Though it works with bounded rectangle with cairo_fill.


Below applicaiton code does NOT work. It throws gl error 1282(Invalid Operation)


---------------------------------------------------------
cairo_rectangle(m_cr, 0, 0, width,height);
cairo_clip(m_cr);
cairo_set_source_surface(m_cr,glSrcSurface, 0 , 0);
cairo_paint(m_cr);
---------------------------------------------------------
What works is below:
-------------------------
cairo_rectangle(m_cr, 0, 0, width,height);
cairo_set_source_surface(m_cr, glSrcSurface, 0 , 0);
cairo_fill(m_cr);
-------------------------


Image clipping with image surface works well.


Please suggest waht could be the issue.


Thanks in advance,


Sumit

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
201205281935248_4D4TEW9B.jpg (image/jpeg, 71 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.