*** This bug is a duplicate of bug 1745799 ***
    https://bugs.launchpad.net/bugs/1745799

Sorry,
Code was not quite complete.
It misses freeing the error.
New version:
 texture = COGL_TEXTURE (cogl_texture_2d_new_from_bitmap (bitmap));
  cogl_texture_set_components (COGL_TEXTURE (texture), components);


  if (!cogl_texture_allocate (COGL_TEXTURE (texture), error))
    {
      g_clear_pointer (&texture, cogl_object_unref);
      cogl_error_free (*error);
      *error = NULL;
      texture = COGL_TEXTURE (cogl_texture_2d_sliced_new_from_bitmap (bitmap, 
COGL_TEXTURE_MAX_WASTE));
      cogl_texture_set_components (COGL_TEXTURE (texture), components);
      if (!cogl_texture_allocate (COGL_TEXTURE (texture), error))
        g_clear_pointer (&texture, cogl_object_unref);
    }

  wl_shm_buffer_end_access (shm_buffer);

  cogl_object_unref (bitmap);

  buffer->texture = texture;

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1795760

Title:
  Xwayland crashed with SIGABRT in OsAbort()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/1795760/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to