Skip to content

Fix uploads of textures in GLES (and make texture uploads better)

Alexander Larsson requested to merge alexl/gtk:gles-texture-colors into master

We're currently getting the red and blue channels mixed up when on GLES because GLES doesn't support our hack to natively upload the cairo image surface pixel format. We just send it up pretending it is the right order, which ends up swapping the r/b channels (or a/g on big endian i guess?).

This MR also cleans up the texture uploads in general allowing us to avoid some copies and format conversions.

Merge request reports