Index: src/gpu/vk/GrVkBackendContext.cpp |
diff --git a/src/gpu/vk/GrVkBackendContext.cpp b/src/gpu/vk/GrVkBackendContext.cpp |
index 9506da554648bbbe064a60ad81b032840f42a20a..213c6c76860d04a123ea14058d722e05a22bc031 100644 |
--- a/src/gpu/vk/GrVkBackendContext.cpp |
+++ b/src/gpu/vk/GrVkBackendContext.cpp |
@@ -109,7 +109,7 @@ const GrVkBackendContext* GrVkBackendContext::Create() { |
err = vkCreateInstance(&instance_create, nullptr, &inst); |
if (err < 0) { |
SkDebugf("vkCreateInstance failed: %d\n", err); |
- SkFAIL("failing"); |
+ return nullptr; |
} |
uint32_t gpuCount; |
@@ -117,7 +117,7 @@ const GrVkBackendContext* GrVkBackendContext::Create() { |
if (err) { |
SkDebugf("vkEnumeratePhysicalDevices failed: %d\n", err); |
vkDestroyInstance(inst, nullptr); |
- SkFAIL("failing"); |
+ return nullptr; |
} |
SkASSERT(gpuCount > 0); |
// Just returning the first physical device instead of getting the whole array. |
@@ -127,7 +127,7 @@ const GrVkBackendContext* GrVkBackendContext::Create() { |
if (err) { |
SkDebugf("vkEnumeratePhysicalDevices failed: %d\n", err); |
vkDestroyInstance(inst, nullptr); |
- SkFAIL("failing"); |
+ return nullptr; |
} |
// query to get the initial queue props size |