[Cogl] [PATCH] cogl-gst: allocate textures synchronously

Neil Roberts neil at linux.intel.com
Fri Mar 14 17:23:11 PDT 2014


Robert Bragg <robert at sixbynine.org> writes:

> -      if (!tex)
> +
> +      cogl_texture_set_premultiplied (tex, FALSE);
> +
> +      if (!cogl_texture_allocate (tex, &internal_error))
>          {
>            cogl_error_free (internal_error);
>            internal_error = NULL;

I think this needs to set tex = NULL in the error handling case so that
it will fall back to the sliced texture case below. It should also free
the texture object that failed to allocate.

- Neil


More information about the Cogl mailing list