From 0702eb9219affa714540488edd44b63718ea83d0 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Thu, 22 Dec 2022 11:43:44 +0300 Subject: render/vulkan: remove NULL renderer check on texture destroy --- render/vulkan/texture.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'render/vulkan/texture.c') diff --git a/render/vulkan/texture.c b/render/vulkan/texture.c index ab51d194..ae6b05c9 100644 --- a/render/vulkan/texture.c +++ b/render/vulkan/texture.c @@ -190,11 +190,6 @@ out: } void vulkan_texture_destroy(struct wlr_vk_texture *texture) { - if (!texture->renderer) { - free(texture); - return; - } - // when we recorded a command to fill this image _this_ frame, // it has to be executed before the texture can be destroyed. // Add it to the renderer->destroy_textures list, destroying -- cgit v1.2.3