diff options
-rw-r--r-- | wsi/tizen/swapchain.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wsi/tizen/swapchain.cpp b/wsi/tizen/swapchain.cpp index 076ae6b..c7cbbf4 100644 --- a/wsi/tizen/swapchain.cpp +++ b/wsi/tizen/swapchain.cpp @@ -422,7 +422,6 @@ VkResult swapchain::allocate_image(VkImageCreateInfo &image_create_info, tizen_i for (uint32_t plane = 0; plane < image_data->num_planes; plane++) { - assert(image_data->stride[plane] >= 0); image_layout[plane].offset = image_data->offset[plane]; image_layout[plane].rowPitch = static_cast<uint32_t>(image_data->stride[plane]); } @@ -551,7 +550,7 @@ void swapchain::present_image(uint32_t pendingIndex) tpl_surface_enqueue_buffer_with_damage_and_sync(m_tpl_surface, image_data->buffer, rect_count, rects, -1); if (rects) - delete rects; + delete[] rects; } void swapchain::destroy_image(swapchain_image &image) |