Neil Roberts 9bb74988d5 cogl: Fallback to set_data when mapping a buffer to fill it
In the journal code and when generating the stroke path the vertices
are generated on the fly and stored in a CoglBuffer using
cogl_buffer_map. However cogl_buffer_map is allowed to fail but it
wasn't checking for a NULL return value. In particular on GLES it will
always fail because glMapBuffer is only provided by an extension. This
adds a new pair of internal functions called
_cogl_buffer_{un,}map_for_fill_or_fallback which wrap
cogl_buffer_map. If the map fails then it will instead return a
pointer into a GByteArray attached to the context. When the buffer is
unmapped the array is copied into the buffer using
cogl_buffer_set_data.
2011-01-13 16:36:32 +00:00
..
2010-12-09 15:42:19 +00:00
2010-12-09 15:34:22 +00:00
2010-10-21 13:13:00 +01:00
2009-01-20 18:47:50 +00:00
2010-10-18 11:26:44 +01:00
2010-10-21 12:22:17 +01:00
2010-10-21 12:22:17 +01:00
2010-06-03 14:10:55 +01:00
2010-03-02 11:12:32 +00:00
2010-12-08 14:26:27 +00:00
2010-11-18 18:23:49 +00:00
2010-10-21 12:22:17 +01:00
2010-10-21 12:22:17 +01:00
2010-12-02 09:53:00 +00:00
2010-12-09 13:59:08 +00:00
2010-11-06 20:11:16 +00:00
2009-07-10 11:38:42 +01:00
2010-10-18 11:26:44 +01:00
2010-10-21 12:22:17 +01:00
2010-11-06 20:11:16 +00:00
2010-10-18 11:26:44 +01:00
2010-11-18 18:23:49 +00:00
2010-11-15 16:00:49 +00:00
2010-02-03 14:38:13 +00:00
2010-11-18 18:23:49 +00:00
2010-11-18 18:23:49 +00:00
2010-11-18 18:23:49 +00:00
2010-12-09 13:59:08 +00:00
2010-03-02 11:12:32 +00:00
2010-11-15 16:00:49 +00:00