Re: Information required for cairo gl backend regarding CAIRO_OPERATOR_SOURCE

Yuanhan Liu <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On Mon, May 28, 2012 at 02:05:22PM +0000, SUMIT PANWAR wrote:
> 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);
> -------------------------

Hi,

It would be good if you attach a full test code that can produce your
issue here.

Thanks,
Yuanhan Liu

> 
> Image clipping with image surface works well.
> 
> Please suggest waht could be the issue.
> 
> Thanks in advance,
> 
> Sumit
> 
>  
> 
>  
> 
> [cid]
> 
> *



> --
> cairo mailing list
> [email protected]
> http://lists.cairographics.org/mailman/listinfo/cairo

--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
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.