mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
zink: handle swapchain creation failure less lazily
this is a real scenario cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22027>
This commit is contained in:
parent
5873dcb32f
commit
ca43ecefa4
1 changed files with 7 additions and 1 deletions
|
|
@ -1250,7 +1250,13 @@ resource_create(struct pipe_screen *pscreen,
|
|||
templ->height0,
|
||||
64, loader_private,
|
||||
&res->dt_stride);
|
||||
assert(res->obj->dt);
|
||||
if (!res->obj->dt) {
|
||||
mesa_loge("zink: could not create swapchain");
|
||||
FREE(res->obj);
|
||||
free(res->modifiers);
|
||||
FREE_CL(res);
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
/* frontbuffer */
|
||||
struct zink_resource *back = (void*)loader_private;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue