diff options
| -rw-r--r-- | icd/nulldrv/nulldrv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/icd/nulldrv/nulldrv.c b/icd/nulldrv/nulldrv.c index e9f0b76c..a0f3b41c 100644 --- a/icd/nulldrv/nulldrv.c +++ b/icd/nulldrv/nulldrv.c @@ -1805,7 +1805,7 @@ ICD_EXPORT VkResult VKAPI vkEnumeratePhysicalDevices( struct nulldrv_gpu *gpu; *pGpuCount = 1; ret = nulldrv_gpu_add(0, 0, 0, &gpu); - if (ret == VK_SUCCESS) + if (ret == VK_SUCCESS && pGpus) pGpus[0] = (VkPhysicalDevice) gpu; return ret; } |
