Neil Roberts dd7b1d53db Allocate immediately in _cogl_egl_texture_2d_new_from_image
The _cogl_egl_texture_2d_new_from_image function has a CoglError
argument which implies that it is unlike the other texture
constructors and returns errors immediately rather than having a
delayed-allocation mechanism. cogl_wayland_texture_2d_new_from_buffer
which calls it is also like this. We can't rely on delayed-allocation
semantics for this without changing the applications because the
texture needs to be allocated before the corresponding EGLImage is
destroyed. This patch just makes it immediately allocate.

A better patch might be to remove the error argument to make it
obvious that there are delayed-allocation semantics and then fix all
of the applications.

This was breaking Cogland and Mutter.

Reviewed-by: Robert Bragg <robert@linux.intel.com>
(cherry picked from commit 0206c03d54823b2f6cbb2aa420d07a4db9bcd8a3)
2014-02-20 16:05:08 +00:00
..
2013-09-23 15:02:31 +01:00
2013-01-22 17:48:05 +00:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:48:17 +00:00
2013-08-20 19:18:40 -04:00
2014-01-20 14:40:45 +00:00
2013-01-22 17:48:05 +00:00
2013-01-22 17:48:05 +00:00
2013-01-22 17:48:05 +00:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:48:17 +00:00
2013-09-23 15:02:31 +01:00
2013-01-22 17:48:05 +00:00
2013-01-22 17:48:13 +00:00
2013-01-22 17:48:05 +00:00
2013-01-22 17:48:05 +00:00
2013-09-23 15:02:30 +01:00
2013-01-22 17:48:17 +00:00
2013-01-22 17:48:05 +00:00
2013-01-22 17:48:05 +00:00
2013-12-11 18:49:19 +00:00
2013-01-22 17:48:17 +00:00
2013-01-22 17:48:05 +00:00
2014-01-20 14:40:45 +00:00
2014-01-20 14:40:45 +00:00
2014-01-20 14:40:45 +00:00
2012-08-14 18:55:42 +01:00
2013-01-22 17:48:17 +00:00
2013-08-30 12:04:36 +01:00