tpl_display_create() has been changed to [return existing tpl_display] from
[return NULL] if there is already existing one.
Therefore, this patch applies this behaviour change on vk_get_tpl_display().
Change-Id: I355b251d43e6e0e54b89aa533d43f33ada997017
Signed-off-by: Hoyub Lee <hoyub.lee@samsung.com>
return NULL;
}
- tpl_display_t *display = tpl_display_create(type, native_dpy);
- if (display == NULL) {
- display = tpl_display_get(native_dpy);
+ tpl_display_t *display = tpl_display_get(native_dpy);
+
+ if (display != NULL) {
tpl_object_reference((tpl_object_t *)display);
+ return display;
+ }
+ else {
+ display = tpl_display_create(type, native_dpy);
+ return display;
}
- return display;
};
static inline tpl_handle_t