mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-10 03:28:18 +02: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>
(cherry picked from commit aa57e8ef18)
This commit is contained in:
parent
24e1a5ebaf
commit
8604d58877
2 changed files with 3 additions and 3 deletions
|
|
@ -3874,7 +3874,7 @@
|
|||
"description": "lvp: avoid accessing member of NULL ptr for global entries",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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