Bug 15797

Summary: problem rendering gradients on quartz surfaces
Product: cairo Reporter: Paolo Bonzini <bonzini>
Component: quartz backendAssignee: Vladimir Vukicevic <vladimir>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.6.2   
Hardware: PowerPC   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test program

Description Paolo Bonzini 2008-05-02 04:02:02 UTC
Created attachment 16307 [details]
test program

The attached program renders the gradient correctly to frame.png if only one call to "render" is present in the main.  If the second call is there, the saved frame.png is entirely green.

The program works correctly with an image surface (try uncommenting this line:

  /* #undef CAIRO_HAS_QUARTZ_SURFACE */

to test).
Comment 1 Paolo Bonzini 2008-05-02 04:37:18 UTC
The same bug applies to radial patterns, I tested using this call:

  cairo_pattern_t *gradient = cairo_pattern_create_radial (0.3, 0.3, 0.1, 0.5, 0.5, 0.5);
Comment 2 Paolo Bonzini 2008-12-09 06:47:29 UTC
Not dependent on PR18632.  This bug is a reference count unbalancing and is fixed in master (but the fix causes PR18632).
Comment 3 Paolo Bonzini 2008-12-09 06:50:21 UTC
See http://permalink.gmane.org/gmane.comp.lib.cairo/15727 for analysis and
patches.
Comment 4 Paolo Bonzini 2008-12-30 09:45:00 UTC
fixed together with PR18632 (same fix applied to 1.8 and master)

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.