mutter/cogl/driver/gl
Robert Bragg 31d105abd8 Check for out-of-memory when allocating 2d textures
This makes Cogl explicitly check for out-of-memory errors reported by
the opengl driver in cogl_texture_2d_new_with_size() calls. This allows
us to throw a COGL_SYSTEM_ERROR_NO_MEMORY error and return NULL so
applications may gracefully handle this condition.

This patch only affects the cogl_texture_2d_new_with_size() api not
_new_from_data() or _new_from_bitmap().

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit 0283423dad59ba3d3e4cde400c29ac8e7803f888)
2013-01-22 17:48:06 +00:00
..
gl Use GL_ARB_texture_swizzle to emulate GL_ALPHA textures 2013-01-22 17:48:04 +00:00
gles Use GL_ARB_texture_swizzle to emulate GL_ALPHA textures 2013-01-22 17:48:04 +00:00
cogl-attribute-gl-private.h buffer: splits out GL specific code 2013-01-22 17:47:59 +00:00
cogl-attribute-gl.c Add a GL 3 driver 2013-01-22 17:48:01 +00:00
cogl-buffer-gl-private.h Add cogl_buffer_map_range() 2013-01-22 17:48:03 +00:00
cogl-buffer-gl.c Add cogl_buffer_map_range() 2013-01-22 17:48:03 +00:00
cogl-clip-stack-gl-private.h clip-stack: Splits out opengl specific code 2013-01-22 17:47:59 +00:00
cogl-clip-stack-gl.c clip-stack: workaround intel gen6 viewport clip bug 2013-01-22 17:48:04 +00:00
cogl-framebuffer-gl-private.h Adds CoglError api 2013-01-22 17:47:39 +00:00
cogl-framebuffer-gl.c Add a GL 3 driver 2013-01-22 17:48:01 +00:00
cogl-pipeline-fragend-fixed-private.h Re-organize the source layout 2013-01-22 17:47:19 +00:00
cogl-pipeline-fragend-fixed.c Clearly define 3 progends that own the frag+vertends 2013-01-22 17:48:00 +00:00
cogl-pipeline-fragend-glsl-private.h Re-organize the source layout 2013-01-22 17:47:19 +00:00
cogl-pipeline-fragend-glsl.c Add a GL 3 driver 2013-01-22 17:48:01 +00:00
cogl-pipeline-opengl-private.h Re-organize the source layout 2013-01-22 17:47:19 +00:00
cogl-pipeline-opengl.c Fix a warning when building without GLES2 support 2013-01-22 17:48:02 +00:00
cogl-pipeline-progend-fixed-private.h Re-organize the source layout 2013-01-22 17:47:19 +00:00
cogl-pipeline-progend-fixed.c Add a GL 3 driver 2013-01-22 17:48:01 +00:00
cogl-pipeline-progend-glsl-private.h Re-organize the source layout 2013-01-22 17:47:19 +00:00
cogl-pipeline-progend-glsl.c progend-glsl: Fix handling of the builtin uniforms on non-GLES2 2013-01-22 17:48:02 +00:00
cogl-pipeline-vertend-fixed-private.h Re-organize the source layout 2013-01-22 17:47:19 +00:00
cogl-pipeline-vertend-fixed.c Clearly define 3 progends that own the frag+vertends 2013-01-22 17:48:00 +00:00
cogl-pipeline-vertend-glsl-private.h Re-organize the source layout 2013-01-22 17:47:19 +00:00
cogl-pipeline-vertend-glsl.c Add a GL 3 driver 2013-01-22 17:48:01 +00:00
cogl-texture-2d-gl-private.h Fix a warning in the vtable for texture_2d_get_data 2013-01-22 17:48:00 +00:00
cogl-texture-2d-gl.c Check for out-of-memory when allocating 2d textures 2013-01-22 17:48:06 +00:00
cogl-util-gl-private.h Check for out-of-memory when allocating 2d textures 2013-01-22 17:48:06 +00:00
cogl-util-gl.c Check for out-of-memory when allocating 2d textures 2013-01-22 17:48:06 +00:00