Skip to content

Commit 8335d94

Browse files
committed
Fix JS bindings
1 parent 1a2aacc commit 8335d94

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

skiko/src/nativeJsMain/cpp/DirectContext.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,7 @@ SKIKO_EXPORT KNativePointer org_jetbrains_skia_DirectContext__1nMakeVulkan
8080
};
8181

8282
skgpu::VulkanExtensions extensions;
83-
if (!extensions.init(backendContext.fGetProc, backendContext.fInstance, backendContext.fPhysicalDevice, 0, nullptr, 0, nullptr)) {
84-
return nullptr;
85-
}
83+
extensions.init(backendContext.fGetProc, backendContext.fInstance, backendContext.fPhysicalDevice, 0, nullptr, 0, nullptr);
8684
backendContext.fVkExtensions = &extensions;
8785
backendContext.fMaxAPIVersion = static_cast<uint32_t>(apiVersion);
8886

0 commit comments

Comments
 (0)