mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
vulkan/alloc: Use char * for pointer arithmetic
MSVC doesn't like arithmetic on void *. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9511>
This commit is contained in:
parent
492b5577f0
commit
e7e297732e
1 changed files with 1 additions and 1 deletions
|
|
@ -199,7 +199,7 @@ vk_multialloc_alloc(struct vk_multialloc *ma,
|
|||
const VkAllocationCallbacks *alloc,
|
||||
VkSystemAllocationScope scope)
|
||||
{
|
||||
void *ptr = vk_alloc(alloc, ma->size, ma->align, scope);
|
||||
char *ptr = vk_alloc(alloc, ma->size, ma->align, scope);
|
||||
if (!ptr)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue