Commit 46cb0f62 by Brandon Schade Committed by Commit Bot

Vulkan: prevent volk reloading on null instance and devices

Bug: angleproject:4419 Change-Id: I82f9bb157e88754efd074358dccef1bb82cab0f7 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2068902Reviewed-by: 's avatarTobin Ehlis <tobine@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 14a2983f
......@@ -2048,12 +2048,12 @@ void RendererVk::onCompletedSerial(Serial serial)
void RendererVk::reloadVolkIfNeeded() const
{
if (volkGetLoadedInstance() != mInstance)
if ((mInstance != VK_NULL_HANDLE) && (volkGetLoadedInstance() != mInstance))
{
volkLoadInstance(mInstance);
}
if (volkGetLoadedDevice() != mDevice)
if ((mDevice != VK_NULL_HANDLE) && (volkGetLoadedDevice() != mDevice))
{
volkLoadDevice(mDevice);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment