tbm_surface_queue_reset(swapchain->tbm_queue,
swapchain->properties.width,
swapchain->properties.height,
- swapchain->properties.format);
+ TBM_FORMAT_ARGB8888);
TPL_INFO("[RESIZE]",
"wl_vk_surface(%p) swapchain(%p) tbm_queue(%p) (%dx%d)->(%dx%d)",
wl_vk_surface, swapchain, swapchain->tbm_queue,
swapchain->properties.height = height;
swapchain->properties.present_mode = present_mode;
swapchain->wl_vk_surface = wl_vk_surface;
+ swapchain->properties.format = format;
wl_vk_surface->swapchain = swapchain;
+ __tpl_util_atomic_set(&swapchain->ref_cnt, 1);
+
tpl_gmutex_lock(&wl_vk_surface->surf_mutex);
/* send swapchain create tbm_queue message */
wl_vk_surface->sent_message = CREATE_QUEUE;
swapchain->tbm_queue != NULL,
"[CRITICAL FAIL] Failed to create tbm_surface_queue");
+
wl_vk_surface->reset = TPL_FALSE;
- __tpl_util_atomic_set(&swapchain->ref_cnt, 1);
return TPL_ERROR_NONE;
}