gbm-tbm: Fix bug for gbm_bo create 21/53021/1 submit/devel/coregl/20151204.063909 submit/tizen_mobile/20151202.065613 submit/tizen_mobile/20151204.053947 submit/tizen_tv/20151202.065316 submit/tizen_tv/20151204.053802
authorSangjin Lee <lsj119@samsung.com>
Tue, 1 Dec 2015 00:10:21 +0000 (09:10 +0900)
committerSangjin Lee <lsj119@samsung.com>
Tue, 1 Dec 2015 00:10:21 +0000 (09:10 +0900)
Change-Id: I4e5a463219c749b321592629cb9623c8bdf3881a
Signed-off-by: Sangjin Lee <lsj119@samsung.com>
backends/tbm/gbm_tbm.c

index e8adca4..5d619f1 100644 (file)
@@ -298,7 +298,7 @@ __gbm_tbm_bo_create(struct gbm_device *gbm,
    }
 
    tbm_surf = tbm_surface_internal_create_with_flags(width, height, format, flags);
-   if (tbm_surf)
+   if (!tbm_surf)
    {
       return NULL;
    }