mutter/clutter/cogl
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
..
cogl cogl: Fallback to set_data when mapping a buffer to fill it 2011-01-13 16:36:32 +00:00
doc cogl: improves header and coding style consistency 2010-02-12 14:05:00 +00:00
pango Allow multiple CoglAtlases for textures 2010-12-13 18:59:41 +00:00
Makefile.am