this check must be before invoking ```ocl_flip```