Skip to content
Commit d72bf0cd authored by Jasper St. Pierre's avatar Jasper St. Pierre
Browse files

compositor: Don't use cogl_texture_new_with_data in the obvious cases

It's a deprecated API that can surprise us. Namely, when the internal
format passed is COGL_PIXEL_FORMAT_ANY, it will *always* allocate an
RGBA8888 pixel format texture, even if we only passed it a RGB format
or even an A8 format.

cogl_texture_2d_new_with_data is the newer, better API and doesn't have
these warts.
parent 584460de
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment