diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-12-22 11:43:44 +0300 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-12-22 11:45:12 +0300 |
commit | 0702eb9219affa714540488edd44b63718ea83d0 (patch) | |
tree | c56e577b69e4a8e4828fcb7e9adb52e6416c150d /render | |
parent | 790fb93794a471662c2f2eea4e7274baf346fbcd (diff) |
render/vulkan: remove NULL renderer check on texture destroy
Diffstat (limited to 'render')
-rw-r--r-- | render/vulkan/texture.c | 5 |
1 files changed, 0 insertions, 5 deletions
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 |