Change-Id: I79ca8864a290b0ddb42a83b96c13542f81cb98ce
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
flags = backend->flags;
/* check the backend flags */
flags = backend->flags;
/* check the backend flags */
- if (!(flags & TBM_CACHE_CTRL_BACKEND)) {
+ if (flags & TBM_CACHE_CTRL_BACKEND) {
if (!backend->bo_cache_flush) {
TBM_LOG("[libtbm:%d] " "error (%s): TBM_FLAG_CACHE_CTRL_TBM needs backend->bo_cache_flush\n", getpid(), __FUNCTION__);
return 0;
if (!backend->bo_cache_flush) {
TBM_LOG("[libtbm:%d] " "error (%s): TBM_FLAG_CACHE_CTRL_TBM needs backend->bo_cache_flush\n", getpid(), __FUNCTION__);
return 0;