wl_egl_surface = (tpl_wl_egl_surface_t *)surface->backend.data;
- TPL_CHECK_ON_TRUE_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER);
+ TPL_CHECK_ON_NULL_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER);
TPL_INFO("[SET_PREROTATION_CAPABILITY]",
"wl_egl_surface(%p) prerotation capability set to [%s]",
wl_egl_surface = (tpl_wl_egl_surface_t *)surface->backend.data;
- TPL_CHECK_ON_TRUE_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER);
+ TPL_CHECK_ON_NULL_RETURN_VAL(wl_egl_surface, TPL_ERROR_INVALID_PARAMETER);
TPL_INFO("[SET_POST_INTERVAL]",
"wl_egl_surface(%p) post_interval(%d -> %d)",