Fix bug of surface that has multiple bo 13/51913/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 16 Nov 2015 13:04:24 +0000 (22:04 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Tue, 17 Nov 2015 08:04:31 +0000 (17:04 +0900)
Change-Id: Ice44fc06d3db487aa29177662e0331877dbd8a0f
Signed-off-by: Changyeon Lee <cyeon.lee@samsung.com>
packaging/libtbm.spec
src/tbm_surface_internal.c

index fab755c..9620f90 100644 (file)
@@ -2,7 +2,7 @@
 %bcond_with wayland
 
 Name:           libtbm
-Version:        1.1.10
+Version:        1.1.11
 Release:        1
 License:        MIT
 Summary:        The library for Tizen Buffer Manager
index 90947a2..a597858 100644 (file)
@@ -443,10 +443,9 @@ tbm_surface_internal_create_with_flags (int width, int height, int format, int f
         bo_size = 0;
         for (j = 0; j < surf->info.num_planes; j++)
         {
-            if (surf->planes_bo_idx[i] == i)
-                bo_size += surf->info.planes[i].size;
+            if (surf->planes_bo_idx[j] == i)
+                bo_size += surf->info.planes[j].size;
         }
-
         surf->bos[i] = tbm_bo_alloc (mgr, bo_size, flags);
         if (!surf->bos[i]) {
             for (j = 0; j < i; j++)