diff --git a/clutter/cogl/cogl/cogl-texture-2d-sliced.c b/clutter/cogl/cogl/cogl-texture-2d-sliced.c index adbbb144e..51323df8a 100644 --- a/clutter/cogl/cogl/cogl-texture-2d-sliced.c +++ b/clutter/cogl/cogl/cogl-texture-2d-sliced.c @@ -1052,17 +1052,6 @@ _cogl_texture_2d_sliced_new_with_size (unsigned int width, return COGL_INVALID_HANDLE; } - if (!_cogl_texture_2d_sliced_slices_create (tex_2ds, - width, - height, - gl_intformat, - gl_format, - gl_type)) - { - _cogl_texture_2d_sliced_free (tex_2ds); - return COGL_INVALID_HANDLE; - } - tex_2ds->auto_mipmap = (flags & COGL_TEXTURE_NO_AUTO_MIPMAP) == 0; return _cogl_texture_2d_sliced_handle_new (tex_2ds); @@ -1121,13 +1110,6 @@ _cogl_texture_2d_sliced_new_from_bitmap (CoglBitmap *bmp, internal_format)) goto error; - if (!_cogl_texture_2d_sliced_slices_create (tex_2ds, - width, height, - gl_intformat, - gl_format, - gl_type)) - goto error; - if (!_cogl_texture_2d_sliced_upload_to_gl (tex_2ds, dst_bmp, gl_intformat,