else
ELOGF("HWC", "Commit Layer(%p) wl_buffer(%p) tsurface(%p) (%dx%d,[%d,%d,%d,%d]=>[%d,%d,%d,%d]) data(%p) wl_buffer_ref(%p)",
(ec ? ec->pixmap : NULL), ec,
- hwc_layer, _get_wl_buffer(ec), tsurface,
+ hwc_layer, (ec ? _get_wl_buffer(ec) : NULL), tsurface,
hwc_layer->info.src_config.size.h, hwc_layer->info.src_config.size.h,
hwc_layer->info.src_config.pos.x, hwc_layer->info.src_config.pos.y,
hwc_layer->info.src_config.pos.w, hwc_layer->info.src_config.pos.h,
hwc_layer->info.dst_pos.x, hwc_layer->info.dst_pos.y,
- hwc_layer->info.dst_pos.w, hwc_layer->info.dst_pos.h, data, _get_wl_buffer_ref(ec));
+ hwc_layer->info.dst_pos.w, hwc_layer->info.dst_pos.h, data, (ec ? _get_wl_buffer_ref(ec) : NULL));
}
error = tdm_layer_set_buffer(tlayer, tsurface);