mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 03:10:09 +01:00
lvp: avoid accessing member of NULL ptr for global entries
Cc: mesa-stable Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22979>
This commit is contained in:
parent
5b31039033
commit
aa57e8ef18
1 changed files with 2 additions and 2 deletions
|
|
@ -1472,8 +1472,8 @@ VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL lvp_GetInstanceProcAddr(
|
|||
VkInstance _instance,
|
||||
const char* pName)
|
||||
{
|
||||
LVP_FROM_HANDLE(lvp_instance, instance, _instance);
|
||||
return vk_instance_get_proc_addr(&instance->vk,
|
||||
VK_FROM_HANDLE(vk_instance, instance, _instance);
|
||||
return vk_instance_get_proc_addr(instance,
|
||||
&lvp_instance_entrypoints,
|
||||
pName);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue