From c3bbff4cf932db11711be874f1016439712498cb Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 8 Jan 2022 16:44:36 +0100 Subject: [PATCH] app: remove duplicate error check Signed-off-by: Elias Naur --- app/vulkan.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/vulkan.go b/app/vulkan.go index 630c254a..d0030460 100644 --- a/app/vulkan.go +++ b/app/vulkan.go @@ -40,10 +40,6 @@ func newVulkanContext(inst vk.Instance, surf vk.Surface) (*vkContext, error) { if err != nil { return nil, err } - if err != nil { - vk.DestroyDevice(dev) - return nil, err - } acquireSem, err := vk.CreateSemaphore(dev) if err != nil { vk.DestroyDevice(dev)