diff --git a/clutter/cogl/cogl/cogl-atlas-texture.c b/clutter/cogl/cogl/cogl-atlas-texture.c index e9b4e6b12..51b2ad42e 100644 --- a/clutter/cogl/cogl/cogl-atlas-texture.c +++ b/clutter/cogl/cogl/cogl-atlas-texture.c @@ -552,11 +552,9 @@ _cogl_atlas_texture_new_from_bitmap (CoglBitmap *bmp, if (bmp_width < 1 || bmp_height < 1) return COGL_INVALID_HANDLE; - /* If we can't use FBOs or we can't read back texture data then it - will be too slow to migrate textures and we shouldn't use the - atlas */ - if (!cogl_features_available (COGL_FEATURE_TEXTURE_READ_PIXELS) || - !cogl_features_available (COGL_FEATURE_OFFSCREEN)) + /* If we can't use FBOs then it will be too slow to migrate textures + and we shouldn't use the atlas */ + if (!cogl_features_available (COGL_FEATURE_OFFSCREEN)) return COGL_INVALID_HANDLE; COGL_NOTE (ATLAS, "Adding texture of size %ix%i", bmp_width, bmp_height);