mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
0577c81c3b
Previously cogl_texture_get_data would pretty much directly pass on to the get_data texture virtual function. This ended up with a lot of common code that was copied to all of the backends. For example, the method is expected to return the required data size if the data pointer is NULL and to calculate its own rowstride if the rowstride is 0. Also it needs to convert the downloaded data if GL can't support that format directly. This patch moves the common code to cogl-texture.c so the virtual is always called with a format that can be downloaded directly by GL and with a valid rowstride. If the download fails then the virtual can return FALSE in which case cogl-texture will use the draw and read fallback. |
||
---|---|---|
.. | ||
cogl | ||
doc | ||
pango | ||
Makefile.am |