From 5bb975cc90c126364154aec40b8ac4d0c4735d37 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Thu, 18 Feb 2016 10:52:58 +0900 Subject: [PATCH] Fix checking backend function Change-Id: I79ca8864a290b0ddb42a83b96c13542f81cb98ce Signed-off-by: Changyeon Lee --- src/tbm_bufmgr_backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tbm_bufmgr_backend.c b/src/tbm_bufmgr_backend.c index 83c4078..bdf32e6 100644 --- a/src/tbm_bufmgr_backend.c +++ b/src/tbm_bufmgr_backend.c @@ -73,7 +73,7 @@ int tbm_backend_init(tbm_bufmgr bufmgr, tbm_bufmgr_backend backend) 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; -- 2.34.1