mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
zink: explicitly check for VK_NULL_HANDLE
This seems a bit less like magic to me. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7881>
This commit is contained in:
parent
6b38b1ccaf
commit
3adf6da4c1
1 changed files with 1 additions and 1 deletions
|
|
@ -1098,7 +1098,7 @@ zink_internal_create_screen(const struct pipe_screen_config *config)
|
|||
debug_printf("ZINK: failed to setup debug utils\n");
|
||||
|
||||
screen->pdev = choose_pdev(screen->instance);
|
||||
if (!screen->pdev)
|
||||
if (screen->pdev == VK_NULL_HANDLE)
|
||||
goto fail;
|
||||
|
||||
update_queue_props(screen);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue