diff --git a/cogl/cogl-auto-texture.c b/cogl/cogl-auto-texture.c index 6de2e32e9..9a5819d94 100644 --- a/cogl/cogl-auto-texture.c +++ b/cogl/cogl-auto-texture.c @@ -179,14 +179,6 @@ _cogl_texture_new_from_bitmap (CoglBitmap *bitmap, &internal_error))) return COGL_TEXTURE (atlas_tex); - if (cogl_error_matches (internal_error, - COGL_SYSTEM_ERROR, - COGL_SYSTEM_ERROR_NO_MEMORY)) - { - _cogl_propagate_error (error, internal_error); - return NULL; - } - cogl_error_free (internal_error); internal_error = NULL; @@ -200,14 +192,6 @@ _cogl_texture_new_from_bitmap (CoglBitmap *bitmap, internal_format, &internal_error)); - if (cogl_error_matches (internal_error, - COGL_SYSTEM_ERROR, - COGL_SYSTEM_ERROR_NO_MEMORY)) - { - _cogl_propagate_error (error, internal_error); - return NULL; - } - if (!tex) { cogl_error_free (internal_error);