mutter/cogl
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
..
deprecated
driver
gl-prototypes
winsys GLX winsys: fix feature handling for INTEL_swap_event 2014-02-05 13:44:38 +00:00
cogl1-context.h
cogl2-experimental.h
cogl-1.0.pc.in
cogl-2.0-experimental.pc.in
cogl-atlas-texture-private.h
cogl-atlas-texture.c
cogl-atlas-texture.h
cogl-atlas.c
cogl-atlas.h
cogl-attribute-buffer-private.h
cogl-attribute-buffer.c
cogl-attribute-buffer.h
cogl-attribute-private.h
cogl-attribute.c
cogl-attribute.h
cogl-bitmap-conversion.c
cogl-bitmap-packing.h
cogl-bitmap-pixbuf.c
cogl-bitmap-private.h
cogl-bitmap.c
cogl-bitmap.h
cogl-bitmask.c
cogl-bitmask.h
cogl-blend-string.c
cogl-blend-string.h
cogl-blit.c
cogl-blit.h
cogl-boxed-value.c
cogl-boxed-value.h
cogl-buffer-private.h
cogl-buffer.c
cogl-buffer.h
cogl-clip-stack.c
cogl-clip-stack.h
cogl-closure-list-private.h
cogl-closure-list.c
cogl-color-private.h
cogl-color.c
cogl-color.h
cogl-config-private.h
cogl-config.c
cogl-context-private.h
cogl-context.c
cogl-context.h
cogl-debug-options.h
cogl-debug.c
cogl-debug.h
cogl-defines.h.in
cogl-defines.h.win32_SDL.in
cogl-defines.h.win32.in
cogl-deprecated.h Remove mentions of the FSF address 2010-03-01 12:56:10 +00:00
cogl-depth-state-private.h Adds missing cogl-depth-state-private.h 2011-05-16 18:45:51 +01:00
cogl-depth-state.c
cogl-depth-state.h
cogl-display-private.h
cogl-display.c
cogl-display.h
cogl-driver.h
cogl-egl-defines.h.in
cogl-egl.h
cogl-enum-types.c.in
cogl-enum-types.h.in
cogl-error-private.h error: Don't allocate a new CoglError when propagating 2013-01-22 17:48:08 +00:00
cogl-error.c
cogl-error.h
cogl-euler.c
cogl-euler.h
cogl-feature-private.c
cogl-feature-private.h
cogl-fence-private.h
cogl-fence.c Don't dereference an unitialised pointer in _cogl_container_of 2014-02-20 13:38:43 +00:00
cogl-fence.h
cogl-flags.h
cogl-frame-info-private.h
cogl-frame-info.c
cogl-frame-info.h
cogl-framebuffer-private.h
cogl-framebuffer.c
cogl-framebuffer.h
cogl-gl-header.h.in
cogl-gl-header.h.win32
cogl-gles2-context-private.h
cogl-gles2-context.c
cogl-gles2-types.h
cogl-gles2.h
cogl-glib-source.c
cogl-glib-source.h
cogl-glsl-shader-boilerplate.h
cogl-glsl-shader-private.h
cogl-glsl-shader.c
cogl-glx-display-private.h
cogl-glx-renderer-private.h
cogl-gpu-info-private.h
cogl-gpu-info.c
cogl-gtype-private.h
cogl-i18n-private.h
cogl-index-buffer-private.h
cogl-index-buffer.c
cogl-index-buffer.h
cogl-indices-private.h
cogl-indices.c
cogl-indices.h
cogl-journal-private.h
cogl-journal.c
cogl-kms-display.h
cogl-kms-renderer.h
cogl-list.c
cogl-list.h
cogl-macros.h
cogl-magazine-private.h
cogl-magazine.c
cogl-matrix-private.h
cogl-matrix-stack-private.h
cogl-matrix-stack.c
cogl-matrix-stack.h
cogl-matrix.c
cogl-matrix.h
cogl-memory-stack-private.h Fixes for --disable-glib 2013-01-22 17:48:05 +00:00
cogl-memory-stack.c
cogl-meta-texture.c
cogl-meta-texture.h
cogl-node-private.h
cogl-node.c
cogl-object-private.h
cogl-object.c
cogl-object.h
cogl-offscreen.h
cogl-onscreen-private.h
cogl-onscreen-template-private.h
cogl-onscreen-template.c
cogl-onscreen-template.h
cogl-onscreen.c
cogl-onscreen.h
cogl-output-private.h
cogl-output.c
cogl-output.h
cogl-pango.h
cogl-pipeline-cache.c
cogl-pipeline-cache.h
cogl-pipeline-debug.c
cogl-pipeline-hash-table.c
cogl-pipeline-hash-table.h
cogl-pipeline-layer-private.h
cogl-pipeline-layer-state-private.h
cogl-pipeline-layer-state.c
cogl-pipeline-layer-state.h
cogl-pipeline-layer.c
cogl-pipeline-private.h
cogl-pipeline-snippet-private.h
cogl-pipeline-snippet.c
cogl-pipeline-state-private.h
cogl-pipeline-state.c
cogl-pipeline-state.h
cogl-pipeline.c
cogl-pipeline.h
cogl-pixel-buffer-private.h
cogl-pixel-buffer.c
cogl-pixel-buffer.h
cogl-point-in-poly-private.h
cogl-point-in-poly.c
cogl-poll-private.h
cogl-poll.c
cogl-poll.h
cogl-primitive-private.h
cogl-primitive-texture.c
cogl-primitive-texture.h
cogl-primitive.c
cogl-primitive.h
cogl-primitives-private.h
cogl-primitives.c
cogl-primitives.h
cogl-private.h
cogl-profile.c
cogl-profile.h
cogl-quaternion-private.h
cogl-quaternion.c
cogl-quaternion.h
cogl-rectangle-map.c
cogl-rectangle-map.h
cogl-renderer-private.h
cogl-renderer.c
cogl-renderer.h
cogl-sampler-cache-private.h
cogl-sampler-cache.c
cogl-sdl.c
cogl-sdl.h
cogl-snippet-private.h
cogl-snippet.c
cogl-snippet.h
cogl-spans.c
cogl-spans.h
cogl-sub-texture-private.h
cogl-sub-texture.c
cogl-sub-texture.h
cogl-swap-chain-private.h
cogl-swap-chain.c Switch use of primitive glib types to c99 equivalents 2012-08-06 14:27:39 +01:00
cogl-swap-chain.h
cogl-texture-2d-gl.h
cogl-texture-2d-private.h
cogl-texture-2d-sliced-private.h remove internal_format and redundant error arguments 2014-01-09 15:49:47 +00:00
cogl-texture-2d-sliced.c
cogl-texture-2d-sliced.h
cogl-texture-2d.c
cogl-texture-2d.h
cogl-texture-3d-private.h
cogl-texture-3d.c
cogl-texture-3d.h
cogl-texture-driver.h
cogl-texture-private.h
cogl-texture-rectangle-private.h
cogl-texture-rectangle.c
cogl-texture-rectangle.h
cogl-texture.c
cogl-texture.h
cogl-types.h
cogl-util.c
cogl-util.h
cogl-vector.c
cogl-vector.h
cogl-version.h
cogl-wayland-client.h
cogl-wayland-renderer.h
cogl-wayland-server.h
cogl-win32-renderer.c
cogl-win32-renderer.h
cogl-x11-renderer-private.h
cogl-xlib-private.h
cogl-xlib-renderer-private.h
cogl-xlib-renderer.c poll: Add general way to hook into mainloop without fd 2013-05-28 21:36:03 +01:00
cogl-xlib-renderer.h
cogl-xlib.c
cogl-xlib.h
cogl.c pipeline: improve real_blend_enable checks 2013-06-06 21:27:09 +01:00
cogl.h
cogl.rc.in
cogl.symbols
Makefile.am
stb_image.c